李哲 4 lat temu
rodzic
commit
2474c60498
2 zmienionych plików z 7 dodań i 3 usunięć
  1. 2 2
      api/integral.api
  2. 5 1
      api/internal/types/types.go

+ 2 - 2
api/integral.api

@@ -102,6 +102,6 @@ service integral-api {
 	@handler IntegralDetailedCheckHandler // TODO: set handler name and delete this comment
 	get /integralDetailedCheck (DetailedReq) returns(RespList)
 	//积分守护
-    @handler IntegralGuardHandler // TODO: set handler name and delete this comment
-    post /integralGuard (guardReq) returns(response)
+	@handler IntegralGuardHandler // TODO: set handler name and delete this comment
+	post /integralGuard (guardReq) returns(response)
 }

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

@@ -62,6 +62,7 @@ type AddResp struct {
 	Code    int64  `form:"code"`
 	Message string `form:"message"`
 }
+
 type ConsumeReq struct {
 	UserId         string `form:"userId"`
 	AppId          int64  `form:"appId"`
@@ -72,8 +73,11 @@ type ConsumeReq struct {
 	EndDate        string `form:"endDate"`
 }
 
-
 type ConsumeResp struct {
 	Code    int64  `form:"code"`
 	Message string `form:"message"`
 }
+
+type GuardReq struct {
+	EndDate string `form:"endDate"`
+}