fix():报文模板

master
DongZeLiang 2024-09-18 22:08:29 +08:00
parent 2ca7c7f5a9
commit fcc012787c
2 changed files with 25 additions and 0 deletions

View File

@ -2,9 +2,12 @@ package com.muyu.web.controller;
import com.muyu.web.common.Result;
import com.muyu.web.domain.MessageTemplate;
import com.muyu.web.domain.req.MessageTemplateSaveReq;
import com.muyu.web.service.MessageTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -23,10 +26,22 @@ public class MessageController {
@Autowired
private MessageTemplateService messageTemplateService;
/**
*
* @return
*/
@GetMapping("/template/list")
public Result<List<MessageTemplate>> templateList(){
return Result.success(
messageTemplateService.list()
);
}
/**
*
* @return
*/
public Result<String> save(@RequestBody @Validated MessageTemplateSaveReq messageTemplateSaveReq){
return Result.success();
}
}

View File

@ -0,0 +1,10 @@
package com.muyu.web.domain.req;
/**
* @Author: DongZeLiang
* @date: 2024/9/18
* @Description:
* @Version: 1.0
*/
public class MessageTemplateSaveReq {
}