
package com.tmerclub.cloud.product.feign;

import com.tmerclub.cloud.api.product.feign.BrandFeignClient;
import com.tmerclub.cloud.common.product.vo.BrandVO;
import com.tmerclub.cloud.common.response.ServerResponseEntity;
import com.tmerclub.cloud.product.service.BrandService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @author lhd
 * @date 2020/12/23
 */
@DubboService
public class BrandFeignController implements BrandFeignClient {

    @Autowired
    private BrandService brandService;

    @Override
    public ServerResponseEntity<BrandVO> getInfo(Long brandId) {
        return ServerResponseEntity.success(brandService.getInfo(brandId));
    }

    @Override
    public void updateCustomBrandToPlatformBrandByShopId(Long shopId, Integer sysType) {
        brandService.updateCustomBrandToPlatformBrandByShopId(shopId, sysType);
    }
}
