25 lines
529 B
Java
25 lines
529 B
Java
|
package com.cnbm.packing.controller;
|
||
|
|
||
|
import io.swagger.annotations.Api;
|
||
|
import org.springframework.web.bind.annotation.*;
|
||
|
import com.cnbm.common.utils.Result;
|
||
|
/**
|
||
|
* @Author weihongyang
|
||
|
* @Date 2022/6/24 8:57 AM
|
||
|
* @Version 1.0
|
||
|
*/
|
||
|
@RestController
|
||
|
@RequestMapping("/packing")
|
||
|
public class TestController {
|
||
|
|
||
|
@GetMapping("get")
|
||
|
public Result<Integer> get(){
|
||
|
return new Result<Integer>().ok(1);
|
||
|
}
|
||
|
|
||
|
@PostMapping("get2")
|
||
|
public Result<Integer> get2(){
|
||
|
return new Result<Integer>().ok(2);
|
||
|
}
|
||
|
}
|