Browse Source

fix:分页参数修改

duxin 2 năm trước cách đây
mục cha
commit
691a2ac53f
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      api/internal/types/types.go
  2. 1 1
      api/message.api

+ 1 - 1
api/internal/types/types.go

@@ -87,7 +87,7 @@ type MessageListReq struct {
 	AppId          string `header:"appId"`
 	EntId          int64  `header:"entId,optional"`
 	SortSize       int64  `json:"sortSize,optional"` //分类获取数
-	Offset         int64  `json:"offset"`            //
+	Offset         int64  `json:"offset,optional"`   //
 	Size           int64  `json:"size,optional"`
 	MsgType        int64  `json:"msgType,optional"`
 	IsRead         int64  `json:"isRead,optional"`

+ 1 - 1
api/message.api

@@ -91,7 +91,7 @@ type MessageListReq {
 	AppId          string `header:"appId"`
 	EntId          int64  `header:"entId,optional"`
 	SortSize       int64  `json:"sortSize,optional"` //分类获取数
-	Offset         int64  `json:"offset"`            //
+	Offset         int64  `json:"offset,optional"`   //
 	Size           int64  `json:"size,optional"`
 	MsgType        int64  `json:"msgType,optional"`
 	IsRead         int64  `json:"isRead,optional"`