|
@@ -0,0 +1,43 @@
|
|
|
+package com.fdkk.sxz.webApi.controller.custom;
|
|
|
+
|
|
|
+import com.fdkk.sxz.annotation.auth.NoAuthentication;
|
|
|
+import com.fdkk.sxz.annotation.log.AroundLog;
|
|
|
+import com.fdkk.sxz.base.BaseController;
|
|
|
+import com.fdkk.sxz.base.Result;
|
|
|
+import com.fdkk.sxz.entity.custuom.CustomMaterialEntity;
|
|
|
+import com.fdkk.sxz.vo.request.RequestCustomMaterial;
|
|
|
+import com.fdkk.sxz.webApi.service.custom.ICustomMaterialService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description: 定制家具——库模块相关API接口
|
|
|
+ * @author: Xiewj
|
|
|
+ * @date: 2021年11月29日18:13:02
|
|
|
+ **/
|
|
|
+@Api(tags = "定制家具材质模块相关API接口 author:Xiewj")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/change/customMaterial")
|
|
|
+public class CustomMaterialApiController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICustomMaterialService customMaterialService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("获取定制家具材质列表")
|
|
|
+ @RequestMapping(value = "/findAllCustomMaterialList", method = RequestMethod.POST)
|
|
|
+ @NoAuthentication
|
|
|
+ @AroundLog(name = "定制家具——获取定制家具材质列表")
|
|
|
+ public Result findAllCustomMaterialList(RequestCustomMaterial params) {
|
|
|
+ List<CustomMaterialEntity> listDTO = customMaterialService.findListByQuery(params);
|
|
|
+ return Result.success(listDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|