Commit d85dd60570344e10bfa86f973c151fc82e4a15b9

Authored by 张志伟
1 parent c5b4b1cb

:boom: feat(*): 优化代码

- 优化代码
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))
... ...
fw-hestia-server/src/main/resources/application.yml
... ... @@ -120,6 +120,7 @@ logbook:
120 120 max-body-size: 300
121 121 exclude:
122 122 - /actuator/**
  123 + strategy: default
123 124  
124 125 management:
125 126 endpoints:
... ...