刘光辉
6 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package jnpf.onlinedev.controller;
 
import jnpf.base.ActionResult;
import jnpf.exception.WorkFlowException;
import jnpf.onlinedev.model.UploadTemplateQuery;
import jnpf.onlinedev.service.UploadTemplateService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
 
@RestController
@RequestMapping("/UploadTemplate")
@RequiredArgsConstructor
public class UploadTemplateController {
    private final UploadTemplateService service;
    @PostMapping("/list")
    public ActionResult<Map<String, Object>> list(@RequestBody UploadTemplateQuery query) throws WorkFlowException {
        return ActionResult.success(service.list(query));
    }
    @PostMapping("/select")
    public ActionResult<Map<String, Object>> select(@RequestBody UploadTemplateQuery query) throws WorkFlowException {
        return ActionResult.success(service.select(query));
    }
}