fix():报文模板
parent
2ca7c7f5a9
commit
fcc012787c
|
@ -2,9 +2,12 @@ package com.muyu.web.controller;
|
||||||
|
|
||||||
import com.muyu.web.common.Result;
|
import com.muyu.web.common.Result;
|
||||||
import com.muyu.web.domain.MessageTemplate;
|
import com.muyu.web.domain.MessageTemplate;
|
||||||
|
import com.muyu.web.domain.req.MessageTemplateSaveReq;
|
||||||
import com.muyu.web.service.MessageTemplateService;
|
import com.muyu.web.service.MessageTemplateService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
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.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@ -23,10 +26,22 @@ public class MessageController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private MessageTemplateService messageTemplateService;
|
private MessageTemplateService messageTemplateService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报文模板列表
|
||||||
|
* @return 列表
|
||||||
|
*/
|
||||||
@GetMapping("/template/list")
|
@GetMapping("/template/list")
|
||||||
public Result<List<MessageTemplate>> templateList(){
|
public Result<List<MessageTemplate>> templateList(){
|
||||||
return Result.success(
|
return Result.success(
|
||||||
messageTemplateService.list()
|
messageTemplateService.list()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存报文模板
|
||||||
|
* @return 统一返回值
|
||||||
|
*/
|
||||||
|
public Result<String> save(@RequestBody @Validated MessageTemplateSaveReq messageTemplateSaveReq){
|
||||||
|
return Result.success();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
package com.muyu.web.domain.req;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: DongZeLiang
|
||||||
|
* @date: 2024/9/18
|
||||||
|
* @Description: 保存报文请求对象
|
||||||
|
* @Version: 1.0
|
||||||
|
*/
|
||||||
|
public class MessageTemplateSaveReq {
|
||||||
|
}
|
Loading…
Reference in New Issue