ProvinceDictController.java
888 Bytes
package com.laowu.controller;
import com.laowu.service.ProvinceDictService;
import com.laowu.util.ResponseData;
import com.laowu.util.ResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
/**
* <p>
* 城市字典表 前端控制器
* </p>
*
* @author Tuyp
* @since 2023-02-15
*/
@RestController
@Api(tags = "城市字典表")
@RequestMapping("/provinceDict")
public class ProvinceDictController {
@Autowired
private ProvinceDictService provinceDictService;
@PostMapping("allProvince")
public ResponseVO allProvince(){
return ResponseData.generateCreatedResponse(0,provinceDictService.allProvince());
}
}