@@ -30,28 +30,28 @@ public class CenterAgencyController extends MyValidController{ | |||
private CenterAgencyManager manager; | |||
@ApiOperation(value = "获取中心渠道编号信息") | |||
@GetMapping(value = "/getCenterAgencyId") | |||
@PostMapping(value = "/getCenterAgencyId") | |||
public ApiResponse<List<QtkAgencyMap>> getCenterAgencyId() { | |||
List<QtkAgencyMap> res = manager.getCenterAgencyId(); | |||
return ApiResponse.of(res); | |||
} | |||
@ApiOperation(value = "新增修改") | |||
@GetMapping(value = "/addOrUpDate") | |||
@PostMapping(value = "/addOrUpDate") | |||
public ApiResponse<?> getCenterServiceHall(@Validated @RequestBody CenterAgencyAddOrUpdateReqDTO reqDto) { | |||
manager.addOrUpdate(reqDto); | |||
return ApiResponse.success().setMessage("成功"); | |||
} | |||
@ApiOperation(value = "删除") | |||
@GetMapping(value = "/delete") | |||
@PostMapping(value = "/delete") | |||
public ApiResponse<?> getCenterServiceHall(@Validated @RequestBody CenterHallOrAgencyDeleteRequestDTO reqDto) { | |||
manager.delete(reqDto); | |||
return ApiResponse.success().setMessage("删除成功"); | |||
} | |||
@ApiOperation(value = "分页查询") | |||
@GetMapping(value = "/page") | |||
@PostMapping(value = "/page") | |||
public ApiResponse<Pagination> getCenterServiceHall(@Validated @RequestBody CenterHallOrAgencyPageRequestDTO reqDto) { | |||
Pagination page = manager.page(reqDto); | |||
return ApiResponse.of(page); |
@@ -29,27 +29,27 @@ public class CenterServiceHallController extends MyValidController{ | |||
@Autowired | |||
private CenterServiceHallManager manager; | |||
@ApiOperation(value = "获取中心网点编号信息") | |||
@GetMapping(value = "/getCenterServiceHall") | |||
@PostMapping(value = "/getCenterServiceHall") | |||
public ApiResponse<List<QtkServicehallMap>> getCenterServiceHall() { | |||
return ApiResponse.of(manager.getCenterServiceHall()); | |||
} | |||
@ApiOperation(value = "新增修改") | |||
@GetMapping(value = "/addOrUpDate") | |||
@PostMapping(value = "/addOrUpDate") | |||
public ApiResponse<?> getCenterServiceHall(@Validated @RequestBody CenterHallAddOrUpdateReqDTO reqDto) { | |||
manager.addOrUpdate(reqDto); | |||
return ApiResponse.success().setMessage("成功"); | |||
} | |||
@ApiOperation(value = "删除") | |||
@GetMapping(value = "/delete") | |||
@PostMapping(value = "/delete") | |||
public ApiResponse<?> getCenterServiceHall(@Validated @RequestBody CenterHallOrAgencyDeleteRequestDTO reqDto) { | |||
manager.delete(reqDto); | |||
return ApiResponse.success().setMessage("删除成功"); | |||
} | |||
@ApiOperation(value = "分页查询") | |||
@GetMapping(value = "/page") | |||
@PostMapping(value = "/page") | |||
public ApiResponse<Pagination> getCenterServiceHall(@Validated @RequestBody CenterHallOrAgencyPageRequestDTO reqDto) { | |||
Pagination page = manager.page(reqDto); | |||
return ApiResponse.of(page); |
@@ -9,10 +9,7 @@ import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.validation.annotation.Validated; | |||
import org.springframework.web.bind.annotation.GetMapping; | |||
import org.springframework.web.bind.annotation.RequestBody; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
import org.springframework.web.bind.annotation.*; | |||
/** | |||
* @Author:ChenChao | |||
@@ -28,19 +25,19 @@ public class WxPayConfigController extends MyValidController{ | |||
@Autowired | |||
private WxPayConfigManager manager; | |||
@ApiOperation(value = "分页查询") | |||
@GetMapping(value = "/page") | |||
@PostMapping(value = "/page") | |||
public ApiResponse<Pagination> page(@Validated @RequestBody WxPayPageRequestDTO reqDto) { | |||
Pagination page = manager.page(reqDto); | |||
return ApiResponse.of(page); | |||
} | |||
@ApiOperation(value = "新增") | |||
@GetMapping(value = "/add") | |||
@PostMapping(value = "/add") | |||
public ApiResponse<?> add(@Validated @RequestBody WxPayAddReqDTO reqDto) throws ManagerException { | |||
manager.add(reqDto); | |||
return ApiResponse.success().setMessage("新增成功"); | |||
} | |||
@ApiOperation(value = "修改") | |||
@GetMapping(value = "/update") | |||
@PostMapping(value = "/update") | |||
public ApiResponse<?> update(@Validated @RequestBody WxPayUpdateReqDTO reqDto) throws ManagerException { | |||
manager.update(reqDto); | |||
return ApiResponse.success().setMessage("修改成功"); |
@@ -11,10 +11,7 @@ import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.validation.annotation.Validated; | |||
import org.springframework.web.bind.annotation.GetMapping; | |||
import org.springframework.web.bind.annotation.RequestBody; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
import org.springframework.web.bind.annotation.*; | |||
/** | |||
* @Author:ChenChao | |||
@@ -30,19 +27,19 @@ public class WxSignConfigController extends MyValidController{ | |||
@Autowired | |||
private WxSignChannelConfigManager manager; | |||
@ApiOperation(value = "分页查询") | |||
@GetMapping(value = "/page") | |||
@PostMapping(value = "/page") | |||
public ApiResponse<Pagination> page(@Validated @RequestBody WxCarPageRequestDTO reqDto) { | |||
Pagination page = manager.page(reqDto); | |||
return ApiResponse.of(page); | |||
} | |||
@ApiOperation(value = "新增") | |||
@GetMapping(value = "/add") | |||
@PostMapping(value = "/add") | |||
public ApiResponse<?> add(@Validated @RequestBody WxCarAddReqDTO reqDto) throws ManagerException { | |||
manager.add(reqDto); | |||
return ApiResponse.success().setMessage("新增成功"); | |||
} | |||
@ApiOperation(value = "修改") | |||
@GetMapping(value = "/update") | |||
@PostMapping(value = "/update") | |||
public ApiResponse<?> update(@Validated @RequestBody WxCarUpdateReqDTO reqDto) throws ManagerException { | |||
manager.update(reqDto); | |||
return ApiResponse.success().setMessage("修改成功"); |
@@ -1,6 +1,6 @@ | |||
package cn.com.taiji.userw.dto.centerHallAndAgency; | |||
import cn.com.taiji.core.dto.AbstractStaffBizRequestDTO; | |||
import cn.com.taiji.core.dto.AbstractStaffBizPageRequestDTO; | |||
import lombok.Data; | |||
/** | |||
@@ -10,6 +10,6 @@ import lombok.Data; | |||
* @description: 中心网点/渠道请求参数 | |||
*/ | |||
@Data | |||
public class CenterHallOrAgencyPageRequestDTO extends AbstractStaffBizRequestDTO { | |||
public class CenterHallOrAgencyPageRequestDTO extends AbstractStaffBizPageRequestDTO { | |||
} |