package com.example.erp.controller.mm;
|
|
import com.example.erp.common.Result;
|
import com.example.erp.service.mm.BasicWarehouseTypeService;
|
import com.example.erp.service.sd.BasicDateService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RestController
|
@RequestMapping("/BasicWarehouse")
|
public class BasicWarehouseTypeController {
|
@Autowired
|
BasicWarehouseTypeService basicWarehouseTypeService;
|
@GetMapping("/BasicWarehouseType/{type}")
|
public Result getBasicWarehouseType(@PathVariable String type){
|
return Result.seccess(basicWarehouseTypeService.getBasicWarehouseType(type));
|
}
|
|
@GetMapping("/BasicWarehouseTypes/{type}")
|
public Result getBasicWarehouseTypes(@PathVariable String type){
|
return Result.seccess(basicWarehouseTypeService.getBasicWarehouseTypes(type));
|
}
|
|
}
|