...
|
...
|
@@ -2,6 +2,7 @@ package protocol |
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
var errmessge ErrorMap = map[int]string{
|
...
|
...
|
@@ -47,10 +48,13 @@ var errmessge ErrorMap = map[int]string{ |
|
|
}
|
|
|
|
|
|
const (
|
|
|
MsgTypeBulletin = 1 //公告
|
|
|
MsgTypeCommend = 2 //表彰
|
|
|
MsgTypeInteraction = 4 //互动消息
|
|
|
MsgTypeAudit = 8 //机会审核
|
|
|
MsgTypeBulletin = 1 //公告
|
|
|
MsgTypeCommend = 2 //表彰
|
|
|
MsgTypeInteraction = 4 //互动消息
|
|
|
MsgTypeAudit = 8 //机会审核
|
|
|
MsgTypeAuditBy = 16 //机会被审核消息
|
|
|
MsgTypeComment = 32 //评论
|
|
|
MsgTypeThumbUp = 64 //点赞
|
|
|
)
|
|
|
|
|
|
var (
|
...
|
...
|
@@ -192,6 +196,35 @@ type MsgCompanyNoticeResponse struct { |
|
|
Total int `json:"total"`
|
|
|
}
|
|
|
|
|
|
/*MsgChanceApprove 机会审核消息*/
|
|
|
type MsgChanceApproveRequest struct {
|
|
|
LastId int64 `json:"lastId"`
|
|
|
PageSize int `json:"pageSize" valid:"Required"`
|
|
|
}
|
|
|
type MsgChanceApproveResponse struct {
|
|
|
List []CommonListItem `json:"list"`
|
|
|
Total int `json:"total"`
|
|
|
}
|
|
|
|
|
|
//我的审核机会列表
|
|
|
type MsgChanceApproveItemOrm struct {
|
|
|
ChanceUserId int64 `orm:"column(chance_user_id)"`
|
|
|
SourceContent string `orm:"column(source_content)"`
|
|
|
ChanceEnableStatus int `orm:"column(enable_status)"`
|
|
|
Images string `orm:"column(images)"`
|
|
|
Voices string `orm:"column(speechs)"`
|
|
|
Videos string `orm:"column(videos)"`
|
|
|
//ReviewStatus int `orm:"column(review_status)"`
|
|
|
|
|
|
Id int64 `orm:"column(id)"` //消息id
|
|
|
ReceiveUserId int64 `orm:"column(receive_user_id)"`
|
|
|
CreateTime time.Time `orm:"column(create_at)"`
|
|
|
Message string `orm:"column(message)"`
|
|
|
IsRead int64 `orm:"column(isRead)"`
|
|
|
ChanceId int64 `orm:"column(source_id)"` // 机会id
|
|
|
//EnableStatus int `orm:"column(enable_status)"`
|
|
|
}
|
|
|
|
|
|
/*Announcement H5公告详情*/
|
|
|
type AnnouncementRequest struct {
|
|
|
Id int `json:"id" valid:"Required"`
|
...
|
...
|
|