LuoDLeo 3 meses atrás
pai
commit
51cd16d2ed

+ 3 - 2
src/main/java/org/springblade/modules/api/controller/ApiAfterSalesController.java

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
 import org.springblade.common.constant.CommonConstant;
 import org.springblade.common.enums.AfterSalesStatusEnum;
 import org.springblade.common.enums.AfterSalesTypeEnum;
@@ -123,7 +124,7 @@ public class ApiAfterSalesController {
     @ApiOperationSupport(order = 9)
     @ApiOperation(value = "获取用户售后列表")
     public R<IPage<AfterSalesVO>> getUserAfterSalesList(Query query,
-                                                        @RequestParam(name = "state,0-处理中 1-完成 2-关闭") Integer state) {
+                                                        @ApiParam(value = "售后状态 0-处理中 1-完成 2-关闭", required = true) @RequestParam(name = "state") Integer state) {
         return R.data(afterSalesService.getUserAfterSalesList(Condition.getPage(query), AuthUtil.getUserId(), state));
     }
 
@@ -131,7 +132,7 @@ public class ApiAfterSalesController {
     @ApiOperationSupport(order = 9)
     @ApiOperation(value = "获取商家售后列表")
     public R<IPage<AfterSalesVO>> getMerchantAfterSalesList(Query query,
-                                                            @RequestParam(name = "state,0-处理中 1-完成 2-关闭") Integer state) {
+                                                            @ApiParam(value = "售后状态 0-处理中 1-完成 2-关闭", required = true) @RequestParam(name = "state") Integer state) {
         return R.data(afterSalesService.getUserAfterSalesList(Condition.getPage(query), AuthUtil.getUserId(), state));
     }