|
@@ -19,6 +19,7 @@ type UserDetail struct {
|
|
SellerMobile string `description:"销售手机号"`
|
|
SellerMobile string `description:"销售手机号"`
|
|
SellerName string `description:"销售名称"`
|
|
SellerName string `description:"销售名称"`
|
|
Note string `json:"-" description:"申请提交时,公司名称"`
|
|
Note string `json:"-" description:"申请提交时,公司名称"`
|
|
|
|
+ CountryCode string `description:"区号"`
|
|
}
|
|
}
|
|
|
|
|
|
func GetUserDetailByUserId(userId int) (item *UserDetail, err error) {
|
|
func GetUserDetailByUserId(userId int) (item *UserDetail, err error) {
|
|
@@ -194,3 +195,18 @@ type ApplyTryReq struct {
|
|
CompanyName string `description:"公司名称"`
|
|
CompanyName string `description:"公司名称"`
|
|
ApplyMethod int `description:"1:已付费客户申请试用,2:非客户申请试用,3:非客户申请试用(ficc下,不需要进行数据校验)"`
|
|
ApplyMethod int `description:"1:已付费客户申请试用,2:非客户申请试用,3:非客户申请试用(ficc下,不需要进行数据校验)"`
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+type CountryCode struct {
|
|
|
|
+ IsNeedAddCountryCode bool `description:"是否需要填写区号:需要填写,false:不需要填写"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CountryCodeItem struct {
|
|
|
|
+ CountryCode string `description:"区号"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func AddCountryCode(CountryCode string, userId int) (err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `UPDATE wx_user SET country_code=? WHERE user_id=? `
|
|
|
|
+ _, err = o.Raw(sql, CountryCode, userId).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|