|
@@ -37,6 +37,8 @@ import com.qs.mp.utils.SecurityUtils;
|
|
|
import com.qs.mp.web.controller.common.BaseApiController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiResponse;
|
|
|
+import io.swagger.annotations.ApiResponses;
|
|
|
import ma.glasnost.orika.MapperFacade;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
@@ -100,6 +102,9 @@ public class ChannelController extends BaseApiController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("subchannel/list")
|
|
|
+ @ApiResponses(
|
|
|
+ @ApiResponse(code = 200, message = "成功", response = ChannelVO.class)
|
|
|
+ )
|
|
|
public TableDataInfo listChannel(@RequestBody Channel channel) {
|
|
|
Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
List<ChannelVO> list = new ArrayList<ChannelVO>();
|
|
@@ -132,6 +137,9 @@ public class ChannelController extends BaseApiController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(value = "subchannel/detail")
|
|
|
+ @ApiResponses(
|
|
|
+ @ApiResponse(code = 200, message = "成功", response = ChannelVO.class)
|
|
|
+ )
|
|
|
public AjaxResult getChannelDetail(@RequestBody Channel channel) {
|
|
|
if (null == channel || null == channel.getChannelId()) {
|
|
|
return error(ErrorCodeEnum.ERROR_CODE_1001);
|