增加微信控制器以及入参Swagger注解
This commit is contained in:
parent
9dfe13a0bc
commit
59c15fc438
@ -8,6 +8,8 @@ import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.dto.WechatTemplateDto;
|
||||
import com.xinelu.manage.service.wechattemplate.IWechatTemplateService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@ -21,6 +23,7 @@ import java.util.List;
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "微信库控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/template")
|
||||
public class WechatTemplateController extends BaseController {
|
||||
@ -30,6 +33,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 查询微信模板信息列表
|
||||
*/
|
||||
@ApiOperation("查询微信模板信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WechatTemplateDto wechatTemplateDto) {
|
||||
@ -41,6 +45,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 导出微信模板信息列表
|
||||
*/
|
||||
@ApiOperation("导出微信模板信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:export')")
|
||||
@Log(title = "微信模板信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ -53,6 +58,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 获取微信模板信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取微信模板信息详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
@ -62,6 +68,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 新增微信模板信息
|
||||
*/
|
||||
@ApiOperation("新增微信模板信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:add')")
|
||||
@Log(title = "微信模板信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ -72,6 +79,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 修改微信模板信息
|
||||
*/
|
||||
@ApiOperation("修改微信模板信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:edit')")
|
||||
@Log(title = "微信模板信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping(value = "/edit")
|
||||
@ -82,6 +90,7 @@ public class WechatTemplateController extends BaseController {
|
||||
/**
|
||||
* 删除微信模板信息
|
||||
*/
|
||||
@ApiOperation("删除微信模板信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:template:remove')")
|
||||
@Log(title = "微信模板信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/remove/{ids}")
|
||||
|
||||
@ -31,6 +31,7 @@ public class WechatTemplateDto extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user