Преглед изворни кода

任务 #7003 【Go 查询】QueryNewTitles \ QueryNotice接口,标题、内容添加多语言字段

deng.yinping пре 5 месеци
родитељ
комит
ad1c813406
4 измењених фајлова са 145 додато и 0 уклоњено
  1. 48 0
      docs/docs.go
  2. 48 0
      docs/swagger.json
  3. 36 0
      docs/swagger.yaml
  4. 13 0
      models/common.go

+ 48 - 0
docs/docs.go

@@ -25133,6 +25133,22 @@ const docTemplate = `{
                     "description": "内容 - 返回content2",
                     "type": "string"
                 },
+                "contenten": {
+                    "description": "内容 - 返回content2(英文)",
+                    "type": "string"
+                },
+                "contentth": {
+                    "description": "内容 - 返回content2(泰文)",
+                    "type": "string"
+                },
+                "contenttw": {
+                    "description": "内容 - 返回content2(繁体)",
+                    "type": "string"
+                },
+                "contentvi": {
+                    "description": "内容 - 返回content2(越南语)",
+                    "type": "string"
+                },
                 "createtime": {
                     "description": "创建时间",
                     "type": "string"
@@ -25168,6 +25184,22 @@ const docTemplate = `{
                 "title": {
                     "description": "标题",
                     "type": "string"
+                },
+                "titleen": {
+                    "description": "标题(英文)",
+                    "type": "string"
+                },
+                "titleth": {
+                    "description": "标题(泰文)",
+                    "type": "string"
+                },
+                "titletw": {
+                    "description": "标题(繁体)",
+                    "type": "string"
+                },
+                "titlevi": {
+                    "description": "标题(越南语)",
+                    "type": "string"
                 }
             }
         },
@@ -53047,6 +53079,22 @@ const docTemplate = `{
                     "description": "标题",
                     "type": "string"
                 },
+                "titleen": {
+                    "description": "标题(英文)",
+                    "type": "string"
+                },
+                "titleth": {
+                    "description": "标题(泰文)",
+                    "type": "string"
+                },
+                "titletw": {
+                    "description": "标题(繁体)",
+                    "type": "string"
+                },
+                "titlevi": {
+                    "description": "标题(越南语)",
+                    "type": "string"
+                },
                 "updatedate": {
                     "description": "修改时间",
                     "type": "string"

+ 48 - 0
docs/swagger.json

@@ -25124,6 +25124,22 @@
                     "description": "内容 - 返回content2",
                     "type": "string"
                 },
+                "contenten": {
+                    "description": "内容 - 返回content2(英文)",
+                    "type": "string"
+                },
+                "contentth": {
+                    "description": "内容 - 返回content2(泰文)",
+                    "type": "string"
+                },
+                "contenttw": {
+                    "description": "内容 - 返回content2(繁体)",
+                    "type": "string"
+                },
+                "contentvi": {
+                    "description": "内容 - 返回content2(越南语)",
+                    "type": "string"
+                },
                 "createtime": {
                     "description": "创建时间",
                     "type": "string"
@@ -25159,6 +25175,22 @@
                 "title": {
                     "description": "标题",
                     "type": "string"
+                },
+                "titleen": {
+                    "description": "标题(英文)",
+                    "type": "string"
+                },
+                "titleth": {
+                    "description": "标题(泰文)",
+                    "type": "string"
+                },
+                "titletw": {
+                    "description": "标题(繁体)",
+                    "type": "string"
+                },
+                "titlevi": {
+                    "description": "标题(越南语)",
+                    "type": "string"
                 }
             }
         },
@@ -53038,6 +53070,22 @@
                     "description": "标题",
                     "type": "string"
                 },
+                "titleen": {
+                    "description": "标题(英文)",
+                    "type": "string"
+                },
+                "titleth": {
+                    "description": "标题(泰文)",
+                    "type": "string"
+                },
+                "titletw": {
+                    "description": "标题(繁体)",
+                    "type": "string"
+                },
+                "titlevi": {
+                    "description": "标题(越南语)",
+                    "type": "string"
+                },
                 "updatedate": {
                     "description": "修改时间",
                     "type": "string"

+ 36 - 0
docs/swagger.yaml

@@ -673,6 +673,18 @@ definitions:
       content:
         description: 内容 - 返回content2
         type: string
+      contenten:
+        description: 内容 - 返回content2(英文)
+        type: string
+      contentth:
+        description: 内容 - 返回content2(泰文)
+        type: string
+      contenttw:
+        description: 内容 - 返回content2(繁体)
+        type: string
+      contentvi:
+        description: 内容 - 返回content2(越南语)
+        type: string
       createtime:
         description: 创建时间
         type: string
@@ -700,6 +712,18 @@ definitions:
       title:
         description: 标题
         type: string
+      titleen:
+        description: 标题(英文)
+        type: string
+      titleth:
+        description: 标题(泰文)
+        type: string
+      titletw:
+        description: 标题(繁体)
+        type: string
+      titlevi:
+        description: 标题(越南语)
+        type: string
     required:
     - autoid
     type: object
@@ -21407,6 +21431,18 @@ definitions:
       title:
         description: 标题
         type: string
+      titleen:
+        description: 标题(英文)
+        type: string
+      titleth:
+        description: 标题(泰文)
+        type: string
+      titletw:
+        description: 标题(繁体)
+        type: string
+      titlevi:
+        description: 标题(越南语)
+        type: string
       updatedate:
         description: 修改时间
         type: string

+ 13 - 0
models/common.go

@@ -156,6 +156,15 @@ type Noticemsg struct {
 	Msgiconurl     string    `json:"msgiconurl"  xorm:"'MSGICONURL'"`         // 消息图标Url
 	IsforceDisplay int32     `json:"isforcedisplay"  xorm:"'ISFORCEDISPLAY'"` // 是否强制显示 - 0:不强制 1:强制
 	Content        string    `json:"content"  xorm:"'CONTENT2'"`              // 内容 - 返回content2
+
+	TitleEn   string `json:"titleen" xorm:"TITLEEN"`         // 标题(英文)
+	TitleTw   string `json:"titletw" xorm:"TITLETW"`         // 标题(繁体)
+	TitleTh   string `json:"titleth" xorm:"TITLETH"`         // 标题(泰文)
+	TitleVi   string `json:"titlevi" xorm:"TITLEVI"`         // 标题(越南语)
+	ContentEn string `json:"contenten"  xorm:"'CONTENT2EN'"` // 内容 - 返回content2(英文)
+	ContentTw string `json:"contenttw"  xorm:"'CONTENT2TW'"` // 内容 - 返回content2(繁体)
+	ContentTh string `json:"contentth"  xorm:"'CONTENT2TH'"` // 内容 - 返回content2(泰文)
+	ContentVi string `json:"contentvi"  xorm:"'CONTENT2VI'"` // 内容 - 返回content2(越南语)
 }
 
 // TableName is NOTICEMSG
@@ -1286,6 +1295,10 @@ type QueryNewTitlesRsp struct {
 	UPDATEDATE  time.Time `json:"updatedate" xorm:"UPDATEDATE"`   // 修改时间
 	MODIFIERID  int64     `json:"modifierid" xorm:"MODIFIERID"`   // 操作人
 	ISSHOW      int32     `json:"isshow" xorm:"ISSHOW"`           // 是否展示 - 0:不展示 1:展示
+	TITLEEN     string    `json:"titleen" xorm:"TITLEEN"`         // 标题(英文)
+	TITLETW     string    `json:"titletw" xorm:"TITLETW"`         // 标题(繁体)
+	TITLETH     string    `json:"titleth" xorm:"TITLETH"`         // 标题(泰文)
+	TITLEVI     string    `json:"titlevi" xorm:"TITLEVI"`         // 标题(越南语)
 }
 
 // GetNewTitles 取资讯标题列表