浏览代码

Fixed bug.

zhouxnsz 1 年之前
父节点
当前提交
e997192c3c
共有 4 个文件被更改,包括 7 次插入7 次删除
  1. 4 4
      controllers/common/notice.go
  2. 1 1
      docs/docs.go
  3. 1 1
      docs/swagger.json
  4. 1 1
      docs/swagger.yaml

+ 4 - 4
controllers/common/notice.go

@@ -212,16 +212,16 @@ func QueryNotice(c *gin.Context) {
 
 // NoticeReadedReq 通知公告设置已读请求参数
 type NoticeReadedReq struct {
-	LoginID  int64 `form:"loginID" binding:"required"`  // 登录账号
-	NoticeID int   `form:"noticeID" binding:"required"` // 通知公告ID
+	LoginID  string `form:"loginID" binding:"required"`  // 登录账号
+	NoticeID int    `form:"noticeID" binding:"required"` // 通知公告ID
 }
 
 // NoticeReaded 通知公告设置已读请求
 // @Summary  通知公告设置已读请求
 // @Produce  json
 // @Security ApiKeyAuth
-// @Param    loginID  query    int true "登录账号"
-// @Param    noticeID query    int true "通知公告ID"
+// @Param    loginID  query    string true "登录账号"
+// @Param    noticeID query    int    true "通知公告ID"
 // @Success  200      {object} app.Response
 // @Failure  500      {object} app.Response
 // @Router   /Common/NoticeReaded [post]

+ 1 - 1
docs/docs.go

@@ -1656,7 +1656,7 @@ const docTemplate = `{
                 "summary": "通知公告设置已读请求",
                 "parameters": [
                     {
-                        "type": "integer",
+                        "type": "string",
                         "description": "登录账号",
                         "name": "loginID",
                         "in": "query",

+ 1 - 1
docs/swagger.json

@@ -1647,7 +1647,7 @@
                 "summary": "通知公告设置已读请求",
                 "parameters": [
                     {
-                        "type": "integer",
+                        "type": "string",
                         "description": "登录账号",
                         "name": "loginID",
                         "in": "query",

+ 1 - 1
docs/swagger.yaml

@@ -32630,7 +32630,7 @@ paths:
         in: query
         name: loginID
         required: true
-        type: integer
+        type: string
       - description: 通知公告ID
         in: query
         name: noticeID