job
This commit is contained in:
@@ -34,7 +34,7 @@ const (
|
||||
type Job struct {
|
||||
ModelIDCULD
|
||||
|
||||
UserID string `orm:"column(user_id)" json:"thingID"` //发布人ID
|
||||
UserID string `orm:"column(user_id)" json:"userID"` //发布人ID
|
||||
JobCategoryID int `orm:"column(job_category_id)" json:"jobCategoryID"` //任务类型
|
||||
JobSpan string `orm:"size(500)" json:"jobSpan"` //任务标签
|
||||
Title string `orm:"size(255)" json:"title"` //任务标题
|
||||
|
||||
@@ -134,10 +134,10 @@ func (c *EventController) TestWebsocket() {
|
||||
//接受消息 业务逻辑
|
||||
msgMap[s.GroupID] = s
|
||||
broadcast <- msgMap
|
||||
go func() {
|
||||
utils.CallFuncAsync(func() {
|
||||
dao.WrapAddIDCULDEntity(s, "")
|
||||
dao.CreateEntity(db, s)
|
||||
}()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user