|
| 1 | +package com.coze.openapi.api; |
| 2 | + |
| 3 | +import com.coze.openapi.client.commerce.benefit.limitation.CreateBenefitLimitationReq; |
| 4 | +import com.coze.openapi.client.commerce.benefit.limitation.CreateBenefitLimitationResp; |
| 5 | +import com.coze.openapi.client.commerce.benefit.limitation.ListBenefitLimitationResp; |
| 6 | +import com.coze.openapi.client.commerce.benefit.limitation.UpdateBenefitLimitationReq; |
| 7 | +import com.coze.openapi.client.commerce.benefit.limitation.UpdateBenefitLimitationResp; |
| 8 | +import com.coze.openapi.client.common.BaseReq; |
| 9 | +import com.coze.openapi.client.common.BaseResponse; |
| 10 | + |
| 11 | +import retrofit2.Call; |
| 12 | +import retrofit2.http.Body; |
| 13 | +import retrofit2.http.GET; |
| 14 | +import retrofit2.http.Headers; |
| 15 | +import retrofit2.http.POST; |
| 16 | +import retrofit2.http.PUT; |
| 17 | +import retrofit2.http.Path; |
| 18 | +import retrofit2.http.Query; |
| 19 | +import retrofit2.http.Tag; |
| 20 | + |
| 21 | +public interface CommerceBenefitLimitationAPI { |
| 22 | + @Headers({"Content-Type: application/json"}) |
| 23 | + @POST("/v1/commerce/benefit/limitations") |
| 24 | + Call<BaseResponse<CreateBenefitLimitationResp>> create( |
| 25 | + @Body CreateBenefitLimitationReq req, @Tag BaseReq baseReq); |
| 26 | + |
| 27 | + @Headers({"Content-Type: application/json"}) |
| 28 | + @PUT("/v1/commerce/benefit/limitations/{benefit_id}") |
| 29 | + Call<BaseResponse<UpdateBenefitLimitationResp>> update( |
| 30 | + @Path("benefit_id") String id, @Body UpdateBenefitLimitationReq req, @Tag BaseReq baseReq); |
| 31 | + |
| 32 | + @Headers({"Content-Type: application/json"}) |
| 33 | + @GET("/v1/commerce/benefit/limitations") |
| 34 | + Call<BaseResponse<ListBenefitLimitationResp>> list( |
| 35 | + @Query("entity_type") String entityType, |
| 36 | + @Query("page_token") String pageToken, |
| 37 | + @Query("page_size") Integer pageSize, |
| 38 | + @Query("entity_id") String entityID, |
| 39 | + @Query("benefit_type") String benefitType, |
| 40 | + @Query("status") String status, |
| 41 | + @Tag BaseReq baseReq); |
| 42 | +} |
0 commit comments