duxin пре 2 година
родитељ
комит
f13b0e965c
2 измењених фајлова са 6 додато и 6 уклоњено
  1. 3 3
      api/messagecenter/internal/types/types.go
  2. 3 3
      api/messagecenter/messagecenter.api

+ 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"`