syntax = "v1" //查询当月积分明细入参 type DetailedReq { // TODO: add members here and delete this comment UserId string `form:"userId"` AppId int64 `form:"appId"` EndDate string `form:"endDate"` StartDate string `form:"startDate"` SearchType int64 `form:"searchType"` Page int64 `form:"page"` PageSize int64 `form:"pageSize"` } //查询当月积分明细 type RespList { Code int64 `form:"code"` Message string `form:"message"` Count int64 `form:"count"` Data []*Point `form:"data"` } type Point { Id int64 `form:"id"` UserId string `form:"userId"` PointType int64 `form:"pointType"` BusinessTypeId int64 `form:"businessTypeId"` BusinessType string `form:"businessType"` Point int64 `form:"point"` CreateTime string `form:"createTime"` EndDate string `form:"endDate"` AppId int64 `form:"appId"` Sort int64 `form:"sort"` Name string `form:"name"` } type response { // TODO: add members here and delete this comment Code int64 `form:"code"` Message string `form:"message"` Data int64 `form:"data"` Expire int64 `form:"expire"` } type checkReq { UserId string `form:"userId"` AppId int64 `form:"appId"` } type expireReq { UserId string `form:"userId"` AppId int64 `form:"appId"` EndDate string `form:"endDate"` } type ( addReq { UserId string `form:"userId"` AppId int64 `form:"appId"` PointType int64 `form:"pointType"` BusinessTypeId int64 `form:"businessTypeId"` BusinessType string `form:"businessType"` Point int64 `form:"point"` EndDate string `form:"endDate"` OperationType bool `form:"operationType"` } addResp { Code int64 `form:"code"` Message string `form:"message"` } ) type ( ConsumeReq { UserId string `form:"userId"` AppId int64 `form:"appId"` PointType int64 `form:"pointType"` BusinessTypeId int64 `form:"businessTypeId"` BusinessType string `form:"businessType"` Point int64 `form:"point"` EndDate string `form:"endDate"` } ConsumeResp { Code int64 `form:"code"` Message string `form:"message"` } ) type guardReq { EndDate string `form:"endDate"` } service integral-api { //积分余额查询 @handler IntegralBalanceCheckHandler // TODO: set handler name and delete this comment get /integralBalanceCheck (checkReq) returns(response) //到期积分查询 @handler IntegralExpireCheckHandler // TODO: set handler name and delete this comment get /integralExpireCheck (expireReq) returns(response) //新增积分 @handler IntegralHarvestHandler // TODO: set handler name and delete this comment post /integralHarvest (addReq) returns(addResp) //消耗积分 @handler IntegralConsumeHandler // TODO: set handler name and delete this comment post /integralConsume (ConsumeReq) returns(ConsumeResp) //查询某月积分明细 @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) }