jiangping
2023-09-21 d5bdf4cd56be6bd0e7afa81d75c35a9f15ae2a40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.doumee.api.business;
 
import com.doumee.api.BaseController;
import com.doumee.core.annotation.excel.ExcelExporter;
import com.doumee.core.annotation.pr.PreventRepeat;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.model.LoginUserInfo;
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.dao.business.model.Brand;
import com.doumee.service.business.BrandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
 
/**
 * @author 江蹄蹄
 * @date 2023/05/12 13:58
 */
@Api(tags = "品牌信息表")
@RestController
@RequestMapping("/business/brand")
public class BrandController extends BaseController {
 
    @Autowired
    private BrandService brandService;
 
    @ApiOperation("列表查询")
    @PostMapping("/list")
    public ApiResponse<List<Brand>> findList (@RequestBody Brand brand) {
        return ApiResponse.success(brandService.findList(brand));
    }
 
}