@@ -317,6 +317,7 @@ func Apply(userId int, companyId int64, mobile, email string, applyInfo userReq.
CompanyNamePay: companyName,
CreateTime: time.Now(),
Source: applyInfo.Source,
+ SourceAgent: applyInfo.SourceAgent,
}
err = ybApplyRecord.Create()
if err != nil {
@@ -14,4 +14,5 @@ type ApplyReq struct {
RealName string `description:"用户真实姓名" json:"real_name"`
Permission string `description:"用户关注品种,多个品种之间用英文,隔开" json:"permission"`
Source int `description:"申请来源:1-我的 2-活动 3-图库"`
+ SourceAgent int `description:"申请入口来源,1:小程序,2:pc" json:"source_agent"`
@@ -23,6 +23,7 @@ type YbApplyRecord struct {
CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"` // 创建时间
IsMove int `gorm:"column:is_move;type:tinyint(4);default:0" json:"is_move"` // 是否已移动 0-否 1-是
Source int `gorm:"column:source;type:tinyint(4);default:1" json:"source"` // 申请来源 1-我的 2-活动 3-图库
+ SourceAgent int `gorm:"column:source_agent;type:tinyint(4);default:1" json:"source_agent"` // 申请入口来源,1:小程序,2:pc
// TableName get sql table name.获取数据库表名