wangkaiyue 3 năm trước cách đây
mục cha
commit
f738b06f62
2 tập tin đã thay đổi với 12 bổ sung12 xóa
  1. 6 6
      api/internal/types/types.go
  2. 6 6
      api/resource.api

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

@@ -2,12 +2,12 @@
 package types
 
 type SurplusReq struct {
-	AppId         string `json:"appId,default=10000"`
-	Function_code string `json:"functionCode,default=xxfb_gyxx_add"`
-	Muser_id      string `json:"userId,optional"`
-	User_id       int64  `json:"newUserId,optional"`
-	Ent_id        int64  `json:"entId,optional,default=55"`
-	Ent_user_id   int64  `json:"entUserId,optional"`
+	AppId         string `header:"appId,default=10000"`
+	Function_code string `header:"functionCode,default=xxfb_gyxx_add"`
+	Muser_id      string `header:"userId,optional"`
+	User_id       int64  `header:"newUserId,optional"`
+	Ent_id        int64  `header:"entId,optional,default=55"`
+	Ent_user_id   int64  `header:"entUserId,optional"`
 }
 
 type Reply struct {

+ 6 - 6
api/resource.api

@@ -8,12 +8,12 @@ info(
 
 type (
 	surplusReq {
-		AppId         string `json:"appId,default=10000"`
-		Function_code string `json:"functionCode,default=xxfb_gyxx_add"`
-		Muser_id      string `json:"userId,optional"`
-		User_id       int64  `json:"newUserId,optional"`
-		Ent_id        int64  `json:"entId,optional,default=55"`
-		Ent_user_id   int64  `json:"entUserId,optional"`
+		AppId         string `header:"appId,default=10000"`
+		Function_code string `header:"functionCode,default=xxfb_gyxx_add"`
+		Muser_id      string `header:"userId,optional"`
+		User_id       int64  `header:"newUserId,optional"`
+		Ent_id        int64  `header:"entId,optional,default=55"`
+		Ent_user_id   int64  `header:"entUserId,optional"`
 	}
 
 	Reply {