From ee1cef95c4f9870dfc44301397ff81ae4e113657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Wed, 25 Jun 2025 10:18:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cfs/controller/UserController.java | 10 --- .../product/controller/DataController.java | 80 ------------------- 2 files changed, 90 deletions(-) delete mode 100644 nflg-mobilebroken-product/src/main/java/com/nflg/mobilebroken/product/controller/DataController.java diff --git a/nflg-mobilebroken-cfs-app/src/main/java/com/nflg/mobilebroken/cfs/controller/UserController.java b/nflg-mobilebroken-cfs-app/src/main/java/com/nflg/mobilebroken/cfs/controller/UserController.java index 7c2deb52..2d2ac936 100644 --- a/nflg-mobilebroken-cfs-app/src/main/java/com/nflg/mobilebroken/cfs/controller/UserController.java +++ b/nflg-mobilebroken-cfs-app/src/main/java/com/nflg/mobilebroken/cfs/controller/UserController.java @@ -124,16 +124,6 @@ public class UserController extends ControllerBase { return ApiResult.success(appUserService.getInfo(userId)); } - /** - * 获取用户信息 - * @param userId 用户ID - * @return 用户信息 - **/ - @GetMapping("getInfoById") - public ApiResult getInfoById(@Valid @RequestParam @NotNull Integer userId){ - return ApiResult.success(appUserService.getInfo(userId)); - } - /** * 发送修改密码验证码邮件 **/ diff --git a/nflg-mobilebroken-product/src/main/java/com/nflg/mobilebroken/product/controller/DataController.java b/nflg-mobilebroken-product/src/main/java/com/nflg/mobilebroken/product/controller/DataController.java deleted file mode 100644 index cf252f64..00000000 --- a/nflg-mobilebroken-product/src/main/java/com/nflg/mobilebroken/product/controller/DataController.java +++ /dev/null @@ -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> getSeries(){ - return ApiResult.success(productSeriesService.get(MultilingualUtil.getLanguage())); - } - - /** - * 获取产品类型列表 - * @param seriesId 产品系列id - */ - @GetMapping("/getType") - public ApiResult> getType(@Valid @RequestParam @NotNull Integer seriesId){ - return ApiResult.success(productTypeService.get(seriesId,MultilingualUtil.getLanguage())); - } - - /** - * 获取产品机型列表 - * @param typeId 产品类型id - */ - @GetMapping("/getModel") - public ApiResult> getModel(@Valid @RequestParam @NotNull Integer typeId){ - return ApiResult.success(productModelService.get(typeId,MultilingualUtil.getLanguage())); - } - - /** - * 获取产品机型详情 - * @param modelId 产品机型id - */ - @GetMapping("/getModelInfo") - public ApiResult getModelInfo(@Valid @RequestParam @NotNull Integer modelId){ - return ApiResult.success(productModelService.getInfo(modelId,MultilingualUtil.getLanguage())); - } - - /** - * 获取产品机型参数列表 - * @param modelId 产品机型id - */ - @GetMapping("/getModelParams") - public ApiResult getModelParams(@Valid @RequestParam @NotNull Integer modelId){ - return ApiResult.success(productModelService.getParams(modelId,MultilingualUtil.getLanguage())); - } -}