Kaynağa Gözat

fix:参数修改

duxin 2 yıl önce
ebeveyn
işleme
f13b0e965c

+ 3 - 3
api/messagecenter/internal/types/types.go

@@ -20,9 +20,9 @@ type UserReq struct {
 	EndTime      string `json:"endTime,optional"`
 	NewUserId    int64  `header:"newUserId"`
 	EntUserId    int64  `header:"entUserId,optional"`
-	Page         int64  `header:"page,optional"`
-	Size         int64  `header:"size,optional"`
-	IsArtificial int64  `header:"isArtificial,optional"`
+	Page         int64  `json:"page,optional"`
+	Size         int64  `json:"size,optional"`
+	IsArtificial int64  `json:"isArtificial,optional"`
 }
 
 type MessageEntity struct {

+ 3 - 3
api/messagecenter/messagecenter.api

@@ -16,9 +16,9 @@ type UserReq {
 	EndTime      string `json:"endTime,optional"`
 	NewUserId    int64  `header:"newUserId"`
 	EntUserId    int64  `header:"entUserId,optional"`
-	Page         int64  `header:"page,optional"`
-	Size         int64  `header:"size,optional"`
-	IsArtificial int64  `header:"isArtificial,optional"`
+	Page         int64  `json:"page,optional"`
+	Size         int64  `json:"size,optional"`
+	IsArtificial int64  `json:"isArtificial,optional"`
 }
 type MessageEntity {
 	OwnType   int64  `json:"ownType"`