|
@@ -3,6 +3,7 @@ package com.ym.mec.web.controller;
|
|
|
import com.ym.mec.biz.dal.entity.ChargeType;
|
|
|
import com.ym.mec.biz.service.ChargeTypeService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.page.QueryInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -11,6 +12,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RequestMapping("chargeType")
|
|
|
@Api(tags = "收费类型服务")
|
|
|
@RestController
|
|
@@ -42,4 +46,12 @@ public class ChargeTypeController extends BaseController {
|
|
|
return succeed(chargeTypeService.queryPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取乐团收费类型")
|
|
|
+ @GetMapping("/findAll")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('chargeType/findAll')")
|
|
|
+ public HttpResponseResult<List<ChargeType>> findAll() {
|
|
|
+ return succeed(chargeTypeService.findAll(new HashMap<>()));
|
|
|
+ }
|
|
|
+
|
|
|
}
|