示例#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)
}