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