主播信息入库添加 userId 字段,添加国家信息接口

This commit is contained in:
2025-06-13 15:05:01 +08:00
parent 1ef2c2f3c9
commit a4c28679d1
9 changed files with 321 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
package com.yupi.springbootinit.controller;
import com.yupi.springbootinit.common.BaseResponse;
import com.yupi.springbootinit.common.ResultUtils;
import com.yupi.springbootinit.model.vo.country.CountryInfoVO;
import com.yupi.springbootinit.service.CountryInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/*
* @author: ziin
* @date: 2025/6/13 13:44
*/
@RestController
@RequestMapping("/common")
@Slf4j
@CrossOrigin
public class CommonController {
@Resource
private CountryInfoService countryInfoService;
@PostMapping("country_info")
public BaseResponse<List<CountryInfoVO>> countryInfo() {
return ResultUtils.success(countryInfoService.getCountryList());
}
}