@RestController
@RequestMapping("/applet/message")
@Api(value = "小程序消息推送接口", tags = {
"小程序消息推送接口"})
public class AppletSendMessageConrtoller {
@Autowired
private WxMaProperties wxMaProperties;
@Autowired
private AppletSendMessageService appletSendMessageService;
@GetMapping("/getTemplateList")
@LogAspect
@ApiOperation(value = "获取模板信息(后台使用)", notes = "获取模板信息(后台使用)", httpMethod = "GET")
public R getTemplateList() throws WxErrorException {
return appletSendMessageService.getTemplateList();
}
@GetMapping("/getTemIdByBusiness")
@ApiOperation(value = "根据业务场景获取模板id", notes = "根据业务场景获取模板id", httpMethod = "GET")
@ApiImplicitParam
swagger2 注解使用
最新推荐文章于 2023-04-19 14:28:00 发布
本文介绍了Swagger2中@ApiImplicitParam和@ApiModelProperty注解的详细属性,包括name、value、paramType、dataType、allowMultiple等。讲解了如何设置传参类型、参数解释以及是否必传。此外,还提到了如何通过@ApiModelProperty的hidden属性隐藏对象字段,以及使用@JsonIgnore在序列化时忽略字段。
摘要由CSDN通过智能技术生成