|
@@ -17,10 +17,12 @@ type DataPermissionMessage struct {
|
|
Content string `json:"content"`
|
|
Content string `json:"content"`
|
|
Remark string `json:"remark"`
|
|
Remark string `json:"remark"`
|
|
OpType int32 `json:"op_type"`
|
|
OpType int32 `json:"op_type"`
|
|
- OpUniqueCode string `json:"op_unique_code"`
|
|
+ Source int32 `description:"来源id"`
|
|
- IsRead int32 `json:"is_read"`
|
|
+ SubSource int32 `description:"子来源id"`
|
|
- CreateTime time.Time `json:"create_time"`
|
|
+ OpUniqueCode string `json:"op_unique_code"`
|
|
- ModifyTime time.Time `json:"modify_time"`
|
|
+ IsRead int32 `json:"is_read"`
|
|
|
|
+ CreateTime time.Time `json:"create_time"`
|
|
|
|
+ ModifyTime time.Time `json:"modify_time"`
|
|
}
|
|
}
|
|
|
|
|
|
var DataPermissionMessageCols = struct {
|
|
var DataPermissionMessageCols = struct {
|
|
@@ -30,6 +32,8 @@ var DataPermissionMessageCols = struct {
|
|
Content string
|
|
Content string
|
|
Remark string
|
|
Remark string
|
|
OpType string
|
|
OpType string
|
|
|
|
+ Source string
|
|
|
|
+ SubSource string
|
|
OpUniqueCode string
|
|
OpUniqueCode string
|
|
IsRead string
|
|
IsRead string
|
|
CreateTime string
|
|
CreateTime string
|
|
@@ -41,6 +45,8 @@ var DataPermissionMessageCols = struct {
|
|
Content: "content",
|
|
Content: "content",
|
|
Remark: "remark",
|
|
Remark: "remark",
|
|
OpType: "op_type",
|
|
OpType: "op_type",
|
|
|
|
+ Source: "source",
|
|
|
|
+ SubSource: "sub_source",
|
|
OpUniqueCode: "op_unique_code",
|
|
OpUniqueCode: "op_unique_code",
|
|
IsRead: "is_read",
|
|
IsRead: "is_read",
|
|
CreateTime: "create_time",
|
|
CreateTime: "create_time",
|
|
@@ -135,6 +141,8 @@ func FormatDataPermissionMessage2Item(origin *DataPermissionMessage) (item *Data
|
|
Content: origin.Content,
|
|
Content: origin.Content,
|
|
Remark: origin.Remark,
|
|
Remark: origin.Remark,
|
|
OpType: origin.OpType,
|
|
OpType: origin.OpType,
|
|
|
|
+ Source: origin.Source,
|
|
|
|
+ SubSource: origin.SubSource,
|
|
OpUniqueCode: origin.OpUniqueCode,
|
|
OpUniqueCode: origin.OpUniqueCode,
|
|
IsRead: origin.IsRead,
|
|
IsRead: origin.IsRead,
|
|
CreateTime: utils.TimeTransferString(utils.FormatDateTime, origin.CreateTime),
|
|
CreateTime: utils.TimeTransferString(utils.FormatDateTime, origin.CreateTime),
|