Commit d85dd60570344e10bfa86f973c151fc82e4a15b9
1 parent
c5b4b1cb
feat(*): 优化代码
- 优化代码
Showing
2 changed files
with
3 additions
and
1 deletions
fw-hestia-server/src/main/java/cn/fw/hestia/server/controller/common/CommonController.kt
... | ... | @@ -8,6 +8,7 @@ import cn.fw.security.auth.client.annotation.Authorization |
8 | 8 | import cn.fw.security.auth.client.enums.AuthType |
9 | 9 | import org.springframework.validation.annotation.Validated |
10 | 10 | import org.springframework.web.bind.annotation.GetMapping |
11 | +import org.springframework.web.bind.annotation.PostMapping | |
11 | 12 | import org.springframework.web.bind.annotation.RequestMapping |
12 | 13 | import org.springframework.web.bind.annotation.RestController |
13 | 14 | import javax.validation.constraints.NotNull |
... | ... | @@ -23,7 +24,7 @@ import javax.validation.constraints.NotNull |
23 | 24 | @Authorization(AuthType.NONE) |
24 | 25 | @RequestMapping("/common/message") |
25 | 26 | class CommonController(private val messageCenterBizService: MessageCenterBizService) { |
26 | - @GetMapping("/send") | |
27 | + @PostMapping("/send") | |
27 | 28 | @ControllerMethod("手动发送消息") |
28 | 29 | fun manualSend(sceneToken: @NotNull(message = "sceneToken不能为空") Long?): Message<String> { |
29 | 30 | return success(messageCenterBizService.manualSend(sceneToken)) | ... | ... |