Quellcode durchsuchen

#7025 【Go查询 】QueryNewTitles、QueryNewContents、QuerySiteColumnConfig、WrTrade2/QuerySiteColumnDetail: 添加返回多语言字段

deng.yinping vor 4 Monaten
Ursprung
Commit
e817865354
4 geänderte Dateien mit 190 neuen und 36 gelöschten Zeilen
  1. 50 6
      docs/docs.go
  2. 50 6
      docs/swagger.json
  3. 39 6
      docs/swagger.yaml
  4. 51 18
      models/wrTrade2.go

+ 50 - 6
docs/docs.go

@@ -52284,19 +52284,19 @@ const docTemplate = `{
                     "type": "string"
                 },
                 "srcnameen": {
-                    "description": "会员名称\\来源名称(英文)",
+                    "description": "来源名称(英文)",
                     "type": "string"
                 },
                 "srcnameth": {
-                    "description": "会员名称\\来源名称(泰文)",
+                    "description": "来源名称(泰文)",
                     "type": "string"
                 },
                 "srcnametw": {
-                    "description": "会员名称\\来源名称(繁体)",
+                    "description": "来源名称(繁体)",
                     "type": "string"
                 },
                 "srcnamevi": {
-                    "description": "会员名称\\来源名称(越南语)",
+                    "description": "来源名称(越南语)",
                     "type": "string"
                 },
                 "srcurl": {
@@ -63592,12 +63592,40 @@ const docTemplate = `{
                     "description": "作者",
                     "type": "string"
                 },
+                "authoren": {
+                    "description": "作者(英文)",
+                    "type": "string"
+                },
+                "authorth": {
+                    "description": "作者(泰文)",
+                    "type": "string"
+                },
+                "authortw": {
+                    "description": "作者(繁体)",
+                    "type": "string"
+                },
+                "authorvi": {
+                    "description": "作者()",
+                    "type": "string"
+                },
                 "brief": {
                     "description": "简介",
                     "type": "string"
                 },
-                "context": {
-                    "description": "内容",
+                "briefen": {
+                    "description": "简介(英文)",
+                    "type": "string"
+                },
+                "briefth": {
+                    "description": "简介(泰文)",
+                    "type": "string"
+                },
+                "brieftw": {
+                    "description": "简介(繁体)",
+                    "type": "string"
+                },
+                "briefvi": {
+                    "description": "简介(越南语)",
                     "type": "string"
                 },
                 "coverimage": {
@@ -63624,6 +63652,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"

+ 50 - 6
docs/swagger.json

@@ -52275,19 +52275,19 @@
                     "type": "string"
                 },
                 "srcnameen": {
-                    "description": "会员名称\\来源名称(英文)",
+                    "description": "来源名称(英文)",
                     "type": "string"
                 },
                 "srcnameth": {
-                    "description": "会员名称\\来源名称(泰文)",
+                    "description": "来源名称(泰文)",
                     "type": "string"
                 },
                 "srcnametw": {
-                    "description": "会员名称\\来源名称(繁体)",
+                    "description": "来源名称(繁体)",
                     "type": "string"
                 },
                 "srcnamevi": {
-                    "description": "会员名称\\来源名称(越南语)",
+                    "description": "来源名称(越南语)",
                     "type": "string"
                 },
                 "srcurl": {
@@ -63583,12 +63583,40 @@
                     "description": "作者",
                     "type": "string"
                 },
+                "authoren": {
+                    "description": "作者(英文)",
+                    "type": "string"
+                },
+                "authorth": {
+                    "description": "作者(泰文)",
+                    "type": "string"
+                },
+                "authortw": {
+                    "description": "作者(繁体)",
+                    "type": "string"
+                },
+                "authorvi": {
+                    "description": "作者()",
+                    "type": "string"
+                },
                 "brief": {
                     "description": "简介",
                     "type": "string"
                 },
-                "context": {
-                    "description": "内容",
+                "briefen": {
+                    "description": "简介(英文)",
+                    "type": "string"
+                },
+                "briefth": {
+                    "description": "简介(泰文)",
+                    "type": "string"
+                },
+                "brieftw": {
+                    "description": "简介(繁体)",
+                    "type": "string"
+                },
+                "briefvi": {
+                    "description": "简介(越南语)",
                     "type": "string"
                 },
                 "coverimage": {
@@ -63615,6 +63643,22 @@
                     "description": "标题",
                     "type": "string"
                 },
+                "titleen": {
+                    "description": "标题(英文)",
+                    "type": "string"
+                },
+                "titleth": {
+                    "description": "标题(泰文)",
+                    "type": "string"
+                },
+                "titletw": {
+                    "description": "标题(繁体)",
+                    "type": "string"
+                },
+                "titlevi": {
+                    "description": "标题(越南语)",
+                    "type": "string"
+                },
                 "updatedate": {
                     "description": "修改时间",
                     "type": "string"

+ 39 - 6
docs/swagger.yaml

@@ -20839,16 +20839,16 @@ definitions:
         description: 来源名称
         type: string
       srcnameen:
-        description: 会员名称\来源名称(英文)
+        description: 来源名称(英文)
         type: string
       srcnameth:
-        description: 会员名称\来源名称(泰文)
+        description: 来源名称(泰文)
         type: string
       srcnametw:
-        description: 会员名称\来源名称(繁体)
+        description: 来源名称(繁体)
         type: string
       srcnamevi:
-        description: 会员名称\来源名称(越南语)
+        description: 来源名称(越南语)
         type: string
       srcurl:
         description: 来源网址
@@ -29235,11 +29235,32 @@ definitions:
       author:
         description: 作者
         type: string
+      authoren:
+        description: 作者(英文)
+        type: string
+      authorth:
+        description: 作者(泰文)
+        type: string
+      authortw:
+        description: 作者(繁体)
+        type: string
+      authorvi:
+        description: 作者()
+        type: string
       brief:
         description: 简介
         type: string
-      context:
-        description: 内容
+      briefen:
+        description: 简介(英文)
+        type: string
+      briefth:
+        description: 简介(泰文)
+        type: string
+      brieftw:
+        description: 简介(繁体)
+        type: string
+      briefvi:
+        description: 简介(越南语)
         type: string
       coverimage:
         description: 封面图片
@@ -29259,6 +29280,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

+ 51 - 18
models/wrTrade2.go

@@ -4282,24 +4282,45 @@ func (r *WrUserReceiptInfo) GetDataEx() (interface{}, error) {
 
 // WrSiteColumnDetail 资讯
 type WrSiteColumnDetail struct {
-	ID          int64            `json:"id"  xorm:"ID" form:"id"`                            // ID(SEQ_SITE_COLUMNDETAIL)
-	COLUMNID    int64            `json:"-"  xorm:"COLUMNID" form:"columnid"`                 // 所属栏目
-	USERID      int64            `json:"-"  xorm:"USERID" form:"userid"`                     // 用户ID(默认为0, 核心为为机构用户ID)
-	TITLE       string           `json:"title"  xorm:"TITLE"`                                // 标题
-	COVERIMAGE  string           `json:"coverimage"  xorm:"COVERIMAGE"`                      // 封面图片
-	AUTHOR      string           `json:"author"  xorm:"AUTHOR"`                              // 作者
-	BRIEF       string           `json:"brief"  xorm:"BRIEF"`                                // 简介
-	CONTEXT     string           `json:"context"  xorm:"CONTEXT"`                            // 内容
-	STATUS      int32            `json:"-"  xorm:"STATUS"`                                   // 状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝
-	ISTOP       int32            `json:"istop"  xorm:"ISTOP"`                                // 是否置顶 - 0:不置 1:置顶
-	HITS        int64            `json:"-"  xorm:"HITS"`                                     // 点击数
-	PUBLISHDATE string           `json:"publishdate"  xorm:"PUBLISHDATE" form:"publishdate"` // 发布日期
-	CREAEDATE   string           `json:"creaedate"  xorm:"CREAEDATE" form:"creaedate"`       // 创建时间
-	CREATORID   int64            `json:"-"  xorm:"CREATORID" form:"creatorid"`               // 创建人
-	UPDATEDATE  string           `json:"updatedate"  xorm:"UPDATEDATE" form:"updatedate"`    // 修改时间
-	MODIFIERID  int64            `json:"-"  xorm:"MODIFIERID" form:"modifierid"`             // 操作人
-	ISSHOW      int32            `json:"-"  xorm:"ISSHOW"`                                   // 是否展示 - 0:不展示 1:展示
-	PageEx      `xorm:"extends"` // 页码信息
+	ID          int64  `json:"id"  xorm:"ID" form:"id"`                            // ID(SEQ_SITE_COLUMNDETAIL)
+	COLUMNID    int64  `json:"-"  xorm:"COLUMNID" form:"columnid"`                 // 所属栏目
+	USERID      int64  `json:"-"  xorm:"USERID" form:"userid"`                     // 用户ID(默认为0, 核心为为机构用户ID)
+	TITLE       string `json:"title"  xorm:"TITLE"`                                // 标题
+	COVERIMAGE  string `json:"coverimage"  xorm:"COVERIMAGE"`                      // 封面图片
+	AUTHOR      string `json:"author"  xorm:"AUTHOR"`                              // 作者
+	BRIEF       string `json:"brief"  xorm:"BRIEF"`                                // 简介
+	CONTEXT     string `json:"-"  xorm:"CONTEXT"`                                  // 内容
+	STATUS      int32  `json:"-"  xorm:"STATUS"`                                   // 状态 - 1:暂存 10:待审核 20:审核通过 30:审核拒绝
+	ISTOP       int32  `json:"istop"  xorm:"ISTOP"`                                // 是否置顶 - 0:不置 1:置顶
+	HITS        int64  `json:"-"  xorm:"HITS"`                                     // 点击数
+	PUBLISHDATE string `json:"publishdate"  xorm:"PUBLISHDATE" form:"publishdate"` // 发布日期
+	CREAEDATE   string `json:"creaedate"  xorm:"CREAEDATE" form:"creaedate"`       // 创建时间
+	CREATORID   int64  `json:"-"  xorm:"CREATORID" form:"creatorid"`               // 创建人
+	UPDATEDATE  string `json:"updatedate"  xorm:"UPDATEDATE" form:"updatedate"`    // 修改时间
+	MODIFIERID  int64  `json:"-"  xorm:"MODIFIERID" form:"modifierid"`             // 操作人
+	ISSHOW      int32  `json:"-"  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"` // 标题(越南语)
+
+	AUTHOREN string `json:"authoren" xorm:"AUTHOREN"` // 作者(英文)
+	AUTHORTW string `json:"authortw" xorm:"AUTHORTW"` // 作者(繁体)
+	AUTHORTH string `json:"authorth" xorm:"AUTHORTH"` // 作者(泰文)
+	AUTHORVI string `json:"authorvi" xorm:"AUTHORVI"` // 作者()
+
+	BRIEFEN string `json:"briefen" xorm:"BRIEFEN"` // 简介(英文)
+	BRIEFTW string `json:"brieftw" xorm:"BRIEFTW"` // 简介(繁体)
+	BRIEFTH string `json:"briefth" xorm:"BRIEFTH"` // 简介(泰文)
+	BRIEFVI string `json:"briefvi" xorm:"BRIEFVI"` // 简介(越南语)
+
+	CONTEXTEN string `json:"-" xorm:"CONTEXTEN"` // 内容(英文)
+	CONTEXTTW string `json:"-" xorm:"CONTEXTTW"` // 内容(繁体)
+	CONTEXTTH string `json:"-" xorm:"CONTEXTTH"` // 内容(泰文)
+	CONTEXTVI string `json:"-" xorm:"CONTEXTVI"` // 内容(越南语)
+
+	PageEx `xorm:"extends"` // 页码信息
 }
 
 func (r *WrSiteColumnDetail) calc() {
@@ -4312,9 +4333,21 @@ SELECT t.ID,
        t.COLUMNID,
        t.USERID,
        t.TITLE,
+	   t.TITLEEn,
+	   t.TITLETW,
+	   t.TITLETH,
+	   t.TITLEVI,
        t.COVERIMAGE,
        t.AUTHOR,
+	   t.AUTHOREN,
+	   t.AUTHORTW,
+	   t.AUTHORTH,
+	   t.AUTHORVI,
        t.BRIEF,
+	   t.BRIEFEN,
+	   t.BRIEFTW,
+	   t.BRIEFTH,
+	   t.BRIEFVI,
        t.CONTEXT,
        t.STATUS,
        t.ISTOP,