|
|
|
@@ -7,6 +7,7 @@ import com.iformall.domain.po.WxBrand; |
|
|
|
import com.iformall.service.WxBrandService; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -78,5 +79,15 @@ public class WxBrandController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("查询品牌名称是否存在") |
|
|
|
@GetMapping("hasBrand") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "name", value = "name", dataType = "String", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query")}) |
|
|
|
public ResultData hasBrand(String name, Long id) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxBrandController::hasBrand"); |
|
|
|
return wxBrandService.hasBrand(getTenantId(), name, id); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |