xianzhi
This commit is contained in:
@@ -20,9 +20,9 @@ func PublishJob(ctx *jxcontext.Context, job *model.Job) (err error) {
|
||||
// switch job.JobCategoryID {
|
||||
// case 1:
|
||||
// }
|
||||
if ctx.GetUserID() != job.UserID {
|
||||
return fmt.Errorf("用户信息已过期,请重新登录!")
|
||||
}
|
||||
// if ctx.GetUserID() != job.UserID {
|
||||
// return fmt.Errorf("用户信息已过期,请重新登录!")
|
||||
// }
|
||||
if job.Count <= 0 {
|
||||
return fmt.Errorf("任务数量不能为0!")
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ type Job struct {
|
||||
TotalPrice int `json:"totalPrice"` //任务总金额
|
||||
Status int `json:"status"` //任务状态
|
||||
Address string `orm:"size(500)" json:"address"` //任务地址
|
||||
Lng int `json:"lng"` // 乘了10的6次方
|
||||
Lat int `json:"lat"` // 乘了10的6次方
|
||||
Lng int `json:"lng"` //乘了10的6次方
|
||||
Lat int `json:"lat"` //乘了10的6次方
|
||||
FinishedAt time.Time `json:"finishedAt"` //截止日期
|
||||
StoreURL string `orm:"column(store_url)" json:"storeURL"` //门店链接
|
||||
SkuURL string `orm:"column(sku_url)" json:"skuURL"` //商品优惠券链接
|
||||
|
||||
Reference in New Issue
Block a user