예제 #1
0
파일: profile.go 프로젝트: Zenithar/gene
func (p *Profile) Update(ctx context.Context, req *models.Account, res *models.Account) error {
	return db.MustGetDB(ctx).Update(models.NewProfile(), req, res)
}
예제 #2
0
파일: twitter.go 프로젝트: Zenithar/gene
func (t *Tweet) One(ctx context.Context, req *models.Account, res *models.Account) error {
	return db.MustGetDB(ctx).One(models.NewTweet(), req, res)
}
예제 #3
0
파일: account.go 프로젝트: Zenithar/gene
func (a *Account) Update(ctx context.Context, req *models.Account, res *models.Account) error {
	return db.MustGetDB(ctx).Update(models.NewAccount(), req, res)
}