李哲 4 年 前
コミット
aa8ffb6e0d
2 ファイル変更4 行追加4 行削除
  1. 2 2
      api/integral.api
  2. 2 2
      api/internal/types/types.go

+ 2 - 2
api/integral.api

@@ -72,8 +72,8 @@ type (
 		PointType  int64  `form:"pointType"`
 		PointType  int64  `form:"pointType"`
 		SourceId   string `form:"sourceId"`
 		SourceId   string `form:"sourceId"`
 		SourceType string `form:"sourceType"`
 		SourceType string `form:"sourceType"`
-		Point      int64  `form:"point"`
-		EndDate    string `form:"endDate"`
+		Point      int64  `form:"point,range=[0:100000000]"`
+		EndDate    string `form:"endDate,optional"`
 	}
 	}
 
 
 	ConsumeResp {
 	ConsumeResp {

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

@@ -68,8 +68,8 @@ type ConsumeReq struct {
 	PointType  int64  `form:"pointType"`
 	PointType  int64  `form:"pointType"`
 	SourceId   string `form:"sourceId"`
 	SourceId   string `form:"sourceId"`
 	SourceType string `form:"sourceType"`
 	SourceType string `form:"sourceType"`
-	Point      int64  `form:"point"`
-	EndDate    string `form:"endDate"`
+	Point      int64  `form:"point,range=[0:100000000]"`
+	EndDate    string `form:"endDate,optional"`
 }
 }
 
 
 type ConsumeResp struct {
 type ConsumeResp struct {