package com.backendsys.modules.b2c.good.controller;

import com.backendsys.modules.b2c.good.entity.GoodBrand;
import com.backendsys.modules.b2c.good.service.GoodBrandService;
import com.backendsys.modules.common.config.security.annotations.Anonymous;
import com.backendsys.modules.common.utils.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Validated
@RestController
@Tag(name = "商品品牌管理")
public class GoodBrandController {

    @Autowired
    private GoodBrandService goodBrandService;

    @Anonymous
    @Operation(summary = "获取商品品牌列表")
    @GetMapping("/api/b2c/good/getGoodBrandList")
    public Result selectGoodBrandList(GoodBrand goodBrand) {
        return Result.success().put("data", goodBrandService.selectGoodBrandList(goodBrand));
    }

}
