|
@@ -0,0 +1,29 @@
|
|
|
+package com.ym.mec.student.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 io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RequestMapping("chargeType")
|
|
|
+@Api(tags = "收费类型服务")
|
|
|
+@RestController
|
|
|
+public class ChargeTypeController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ChargeTypeService chargeTypeService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取乐团收费类型")
|
|
|
+ @GetMapping("/findAll")
|
|
|
+ public HttpResponseResult<List<ChargeType>> findAll() {
|
|
|
+ return succeed(chargeTypeService.findAll(new HashMap<>()));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|