This commit is contained in:
曹鹏飞 2025-06-25 10:18:45 +08:00
parent e90fa0738f
commit ee1cef95c4
2 changed files with 0 additions and 90 deletions

View File

@ -124,16 +124,6 @@ public class UserController extends ControllerBase {
return ApiResult.success(appUserService.getInfo(userId));
}
/**
* 获取用户信息
* @param userId 用户ID
* @return 用户信息
**/
@GetMapping("getInfoById")
public ApiResult<AppUserVO> getInfoById(@Valid @RequestParam @NotNull Integer userId){
return ApiResult.success(appUserService.getInfo(userId));
}
/**
* 发送修改密码验证码邮件
**/

View File

@ -1,80 +0,0 @@
package com.nflg.mobilebroken.product.controller;
import com.nflg.mobilebroken.common.pojo.ApiResult;
import com.nflg.mobilebroken.common.pojo.vo.*;
import com.nflg.mobilebroken.common.util.MultilingualUtil;
import com.nflg.mobilebroken.repository.service.IProductModelService;
import com.nflg.mobilebroken.repository.service.IProductSeriesService;
import com.nflg.mobilebroken.repository.service.IProductTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 系列
*/
@Slf4j
@RestController
@RequestMapping("/data")
public class DataController extends BaseController{
@Resource
private IProductSeriesService productSeriesService;
@Resource
private IProductTypeService productTypeService;
@Resource
private IProductModelService productModelService;
/**
* 获取产品系列列表
*/
@GetMapping("/getSeries")
public ApiResult<List<ProductSeriesVO>> getSeries(){
return ApiResult.success(productSeriesService.get(MultilingualUtil.getLanguage()));
}
/**
* 获取产品类型列表
* @param seriesId 产品系列id
*/
@GetMapping("/getType")
public ApiResult<List<ProductTypeVO>> getType(@Valid @RequestParam @NotNull Integer seriesId){
return ApiResult.success(productTypeService.get(seriesId,MultilingualUtil.getLanguage()));
}
/**
* 获取产品机型列表
* @param typeId 产品类型id
*/
@GetMapping("/getModel")
public ApiResult<List<ProductModelVO>> getModel(@Valid @RequestParam @NotNull Integer typeId){
return ApiResult.success(productModelService.get(typeId,MultilingualUtil.getLanguage()));
}
/**
* 获取产品机型详情
* @param modelId 产品机型id
*/
@GetMapping("/getModelInfo")
public ApiResult<ProductModelInfoVO> getModelInfo(@Valid @RequestParam @NotNull Integer modelId){
return ApiResult.success(productModelService.getInfo(modelId,MultilingualUtil.getLanguage()));
}
/**
* 获取产品机型参数列表
* @param modelId 产品机型id
*/
@GetMapping("/getModelParams")
public ApiResult<ProductModelParamsVO> getModelParams(@Valid @RequestParam @NotNull Integer modelId){
return ApiResult.success(productModelService.getParams(modelId,MultilingualUtil.getLanguage()));
}
}