|
@@ -76,23 +76,19 @@ FROM
|
|
|
}
|
|
|
|
|
|
type SaveCygxYanxuanSpecialAuthorReq struct {
|
|
|
- Id int
|
|
|
UserId int // 用户ID
|
|
|
SpecialName string // 专栏名称
|
|
|
Introduction string // 介绍
|
|
|
Label string // 标签
|
|
|
NickName string // 昵称
|
|
|
- RealName string // 姓名
|
|
|
- Mobile string // 手机号
|
|
|
- HeadImg string // 头像
|
|
|
BgImg string // 背景图
|
|
|
}
|
|
|
|
|
|
func UpdateYanxuanSpecialAuthor(item *CygxYanxuanSpecialAuthor) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ``
|
|
|
- sql = `UPDATE cygx_yanxuan_special_author SET special_name=?,introduction=?,label=?,nick_name=?,
|
|
|
- head_img=?,modify_time=NOW() WHERE id = ? `
|
|
|
- _, err = o.Raw(sql, item.SpecialName, item.Introduction, item.Label, item.NickName, item.HeadImg).Exec()
|
|
|
+ sql = `UPDATE cygx_yanxuan_special_author SET special_name=?,introduction=?,label=?,nick_name=?
|
|
|
+ ,modify_time=NOW() WHERE user_id = ? `
|
|
|
+ _, err = o.Raw(sql, item.SpecialName, item.Introduction, item.Label, item.NickName, item.UserId).Exec()
|
|
|
return
|
|
|
}
|