master:意见反馈调优;
parent
c72f3b1460
commit
ddba4a7cf4
|
|
@ -49,7 +49,7 @@ public class FeedbackController extends XktBaseController {
|
|||
return R.ok(feedbackService.page(BeanUtil.toBean(pageVO, FeedbackPageDTO.class)));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "意见反馈详情", httpMethod = "PUT", response = R.class)
|
||||
@ApiOperation(value = "意见反馈详情", httpMethod = "GET", response = R.class)
|
||||
@GetMapping("/{id}")
|
||||
public R<FeedbackResVO> getInfo(@PathVariable Long id) {
|
||||
return R.ok(BeanUtil.toBean(feedbackService.getInfo(id), FeedbackResVO.class));
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class NoticeController extends BaseController {
|
|||
return R.ok(noticeService.edit(BeanUtil.toBean(editVO, NoticeEditDTO.class)));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "公告详情(档口公告、系统公告)", httpMethod = "PUT", response = R.class)
|
||||
@ApiOperation(value = "公告详情(档口公告、系统公告)", httpMethod = "GET", response = R.class)
|
||||
@GetMapping("/{noticeId}")
|
||||
public R<NoticeResVO> getInfo(@PathVariable Long noticeId) {
|
||||
return R.ok(BeanUtil.toBean(noticeService.getInfo(noticeId), NoticeResVO.class));
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ public class FeedbackResVO {
|
|||
@ApiModelProperty(value = "内容")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "联系方式")
|
||||
private String contract;
|
||||
private String contact;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.ruoyi.web.controller.xkt.vo.feedback;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.ruoyi.common.xss.Xss;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
|
@ -20,13 +21,15 @@ import javax.validation.constraints.Size;
|
|||
public class FeedbackVO {
|
||||
|
||||
@ApiModelProperty(value = "用户反馈内容", required = true)
|
||||
@Size(max = 200, message = "反馈内容不能超过200个字!")
|
||||
@Size(max = 200, message = "反馈内容不能超过180个字!")
|
||||
@NotBlank(message = "反馈内容不能为空!")
|
||||
@Xss
|
||||
private String content;
|
||||
@ApiModelProperty(value = "用户反馈联系方式", required = true)
|
||||
@Size(max = 20, message = "联系方式不能超过20个字!")
|
||||
@NotBlank(message = "联系方式不能为空!")
|
||||
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话格式不正确,请输入有效的中国大陆手机号")
|
||||
@Xss
|
||||
private String contact;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ public class FeedbackResDTO {
|
|||
@ApiModelProperty(value = "内容")
|
||||
private String content;
|
||||
@ApiModelProperty(value = "联系方式")
|
||||
private String contract;
|
||||
private String contact;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue