|
@@ -40,20 +40,20 @@ func (l *PublishInfoLogic) PublishInfo(in *consumerinfo.PublishInfoReq) (*consum
|
|
var id int64
|
|
var id int64
|
|
//信息类型1:招标信息 2:采购信息 3:供应信息
|
|
//信息类型1:招标信息 2:采购信息 3:供应信息
|
|
publishData := make(map[string]interface{})
|
|
publishData := make(map[string]interface{})
|
|
- publishData["user_id"] = in.UserId //发布人用户ID
|
|
|
|
- publishData["phone"] = in.Phone //注册手机号
|
|
|
|
- publishData["title"] = in.Title //信息标题
|
|
|
|
- publishData["province"] = in.Province //项目省份
|
|
|
|
- publishData["city"] = in.City //项目城市
|
|
|
|
- publishData["detail"] = util.NewCut().ClearHtml(in.Detail) //正文信息
|
|
|
|
- publishData["create_time"] = time.Now().Format("2006-01-02 15:04:05") //申请时间
|
|
|
|
- publishData["attach"] = in.Attach //附件(多个附件逗号分割)
|
|
|
|
- publishData["contact_person"] = in.Contact.Person //联系人
|
|
|
|
- publishData["contact_phone"] = in.Contact.Phone //联系人电话
|
|
|
|
- publishData["contact_overt"] = in.Contact.Overt //是否公开
|
|
|
|
- publishData["is_del"] = 1 // 0:全部;1:未删除;-1:删除
|
|
|
|
- publishData["published"] = 1 // 0:全部;1:未发布;2:已发布
|
|
|
|
- publishData["type"] = mc.IntAll(in.MsgType) //1:招标信息|2:采购信息|3:供应信息
|
|
|
|
|
|
+ publishData["user_id"] = in.UserId //发布人用户ID
|
|
|
|
+ publishData["phone"] = in.Phone //注册手机号
|
|
|
|
+ publishData["title"] = in.Title //信息标题
|
|
|
|
+ publishData["province"] = in.Province //项目省份
|
|
|
|
+ publishData["city"] = in.City //项目城市
|
|
|
|
+ publishData["detail"] = util.NewCut().ClearHtml(in.Detail) //正文信息
|
|
|
|
+ publishData["create_time"] = time.Now().Format("2006-01-02 15:04:05") //申请时间
|
|
|
|
+ publishData["attach"] = in.Attach //附件(多个附件逗号分割)
|
|
|
|
+ publishData["contact_person"] = in.Contact.Person //联系人
|
|
|
|
+ publishData["contact_phone"] = in.Contact.Phone //联系人电话
|
|
|
|
+ publishData["contact_overt"] = mc.If(in.Contact.Overt == 0, 2, in.Contact.Overt).(int) //是否公开 默认不公开
|
|
|
|
+ publishData["is_del"] = 1 // 0:全部;1:未删除;-1:删除
|
|
|
|
+ publishData["published"] = 1 // 0:全部;1:未发布;2:已发布
|
|
|
|
+ publishData["type"] = mc.IntAll(in.MsgType) //1:招标信息|2:采购信息|3:供应信息
|
|
publishData["ent_id"] = mc.IntAll(in.EntId)
|
|
publishData["ent_id"] = mc.IntAll(in.EntId)
|
|
publishData["app_id"] = in.AppId
|
|
publishData["app_id"] = in.AppId
|
|
// 0:全部;1:待审核;2:待人工审核(敏感词审核不通过||敏感词审核通过);3:自动审核通过;4:人工审核通过;-1:自动审核不通过(机构冻结);-2:人工审核不通过;
|
|
// 0:全部;1:待审核;2:待人工审核(敏感词审核不通过||敏感词审核通过);3:自动审核通过;4:人工审核通过;-1:自动审核不通过(机构冻结);-2:人工审核不通过;
|