/**
* 修改渠道
*/
@PreAuthorize("hasPermission('tienchin:channel:edit')")
@Log(title = "渠道管理", businessType = BusinessType.UPDATE)
@PutMapping
AjaxResult edit(@Validated @RequestBody ChannelVO channelVO) {
return AjaxResult.success(iChannelService.updateChannel(channelVO) > 0 ? "更新成功" : "更新失败");
}
/**
* 根据渠道ID查询一个具体的渠道信息
*
* @param channelId 渠道ID
* @return {@link AjaxResult}
*/
@PreAuthorize("hasPermission('tienchin:channel:list')")
@GetMapping("/{channelId}")
AjaxResult selectChannelList(@PathVariable Long channelId) {
return AjaxResult.success(iChannelService.getById(channelId));
}