فهرست منبع

#6618 【Go查询】接口:Common/QueryNotice 添加返回字段 isforcedisplay

deng.yinping 10 ماه پیش
والد
کامیت
0d5fd1839e
5فایلهای تغییر یافته به همراه33 افزوده شده و 17 حذف شده
  1. 4 0
      .gitignore
  2. 4 0
      docs/docs.go
  3. 4 0
      docs/swagger.json
  4. 3 0
      docs/swagger.yaml
  5. 18 17
      models/common.go

+ 4 - 0
.gitignore

@@ -10,3 +10,7 @@ mtp2_if.exe
 __debug_bin*
 debug_*
 vendor
+go.mod
+go.sum
+config/config.xml
+.gitignore

+ 4 - 0
docs/docs.go

@@ -25111,6 +25111,10 @@ const docTemplate = `{
                     "description": "结束时间",
                     "type": "string"
                 },
+                "isforcedisplay": {
+                    "description": "是否强制显示 - 0:不强制 1:强制",
+                    "type": "integer"
+                },
                 "istop": {
                     "description": "是否置顶 - 0:不置顶 1:置顶",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -25102,6 +25102,10 @@
                     "description": "结束时间",
                     "type": "string"
                 },
+                "isforcedisplay": {
+                    "description": "是否强制显示 - 0:不强制 1:强制",
+                    "type": "integer"
+                },
                 "istop": {
                     "description": "是否置顶 - 0:不置顶 1:置顶",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -706,6 +706,9 @@ definitions:
       endtime:
         description: 结束时间
         type: string
+      isforcedisplay:
+        description: 是否强制显示 - 0:不强制 1:强制
+        type: integer
       istop:
         description: 是否置顶 - 0:不置顶 1:置顶
         type: integer

+ 18 - 17
models/common.go

@@ -136,23 +136,24 @@ func (Enumdicitem) TableName() string {
 
 // Noticemsg 公告消息表
 type Noticemsg struct {
-	Autoid        int32     `json:"autoid"  xorm:"'AUTOID'" binding:"required"` // 自增ID
-	Msgtype       int32     `json:"msgtype"  xorm:"'MSGTYPE'"`                  // 消息类型 - 1:公告通知 2:系统消息 3:商品到期提货通知
-	Title         string    `json:"title"  xorm:"'TITLE'"`                      // 标题
-	Content       string    `json:"content"  xorm:"'CONTENT'"`                  // 内容
-	Scheduletime  time.Time `json:"scheduletime"  xorm:"'SCHEDULETIME'"`        // 计划发送时间
-	Publisher     string    `json:"publisher"  xorm:"'PUBLISHER'"`              // 消息发布者
-	Sendtype      int32     `json:"sendtype"  xorm:"'SENDTYPE'"`                // 推送方式 - 1:全体广播 2:按会员广播 3:个人推送 4:按会员广播(仅会员)
-	Userid        int64     `json:"userid"  xorm:"'USERID'"`                    // 会员/投资者ID推送方式 为 个人时,填写投资者ID
-	Istop         int32     `json:"istop"  xorm:"'ISTOP'"`                      // 是否置顶 - 0:不置顶 1:置顶
-	Sentstatus    int32     `json:"sentstatus"  xorm:"'SENTSTATUS'"`            // 推送状态 - 0:未推送 1:已推送 2:审核拒绝
-	Endtime       time.Time `json:"endtime"  xorm:"'ENDTIME'"`                  // 结束时间
-	Creatorid     int64     `json:"creatorid"  xorm:"'CREATORID'"`              // 建仓人
-	Createtime    time.Time `json:"createtime"  xorm:"'CREATETIME'"`            // 创建时间
-	Auditoruserid int64     `json:"auditoruserid"  xorm:"'AUDITORUSERID'"`      // 审核人
-	Audittime     time.Time `json:"audittime"  xorm:"'AUDITTIME'"`              // 审核日期
-	Auditremark   string    `json:"auditremark"  xorm:"'AUDITREMARK'"`          // 审核备注
-	Msgiconurl    string    `json:"msgiconurl"  xorm:"'MSGICONURL'"`            // 消息图标Url
+	Autoid         int32     `json:"autoid"  xorm:"'AUTOID'" binding:"required"` // 自增ID
+	Msgtype        int32     `json:"msgtype"  xorm:"'MSGTYPE'"`                  // 消息类型 - 1:公告通知 2:系统消息 3:商品到期提货通知
+	Title          string    `json:"title"  xorm:"'TITLE'"`                      // 标题
+	Content        string    `json:"content"  xorm:"'CONTENT'"`                  // 内容
+	Scheduletime   time.Time `json:"scheduletime"  xorm:"'SCHEDULETIME'"`        // 计划发送时间
+	Publisher      string    `json:"publisher"  xorm:"'PUBLISHER'"`              // 消息发布者
+	Sendtype       int32     `json:"sendtype"  xorm:"'SENDTYPE'"`                // 推送方式 - 1:全体广播 2:按会员广播 3:个人推送 4:按会员广播(仅会员)
+	Userid         int64     `json:"userid"  xorm:"'USERID'"`                    // 会员/投资者ID推送方式 为 个人时,填写投资者ID
+	Istop          int32     `json:"istop"  xorm:"'ISTOP'"`                      // 是否置顶 - 0:不置顶 1:置顶
+	Sentstatus     int32     `json:"sentstatus"  xorm:"'SENTSTATUS'"`            // 推送状态 - 0:未推送 1:已推送 2:审核拒绝
+	Endtime        time.Time `json:"endtime"  xorm:"'ENDTIME'"`                  // 结束时间
+	Creatorid      int64     `json:"creatorid"  xorm:"'CREATORID'"`              // 建仓人
+	Createtime     time.Time `json:"createtime"  xorm:"'CREATETIME'"`            // 创建时间
+	Auditoruserid  int64     `json:"auditoruserid"  xorm:"'AUDITORUSERID'"`      // 审核人
+	Audittime      time.Time `json:"audittime"  xorm:"'AUDITTIME'"`              // 审核日期
+	Auditremark    string    `json:"auditremark"  xorm:"'AUDITREMARK'"`          // 审核备注
+	Msgiconurl     string    `json:"msgiconurl"  xorm:"'MSGICONURL'"`            // 消息图标Url
+	IsforceDisplay int32     `json:"isforcedisplay"  xorm:"'ISFORCEDISPLAY'"`    // 是否强制显示 - 0:不强制 1:强制
 }
 
 // TableName is NOTICEMSG