|
@@ -10,9 +10,7 @@ import com.chelvc.cloud.maintain.vo.SimpleMerchantVO;
|
|
|
import com.chelvc.cloud.vehicle.api.param.MerchantQueryParam;
|
|
|
import com.chelvc.cloud.vehicle.api.service.MerchantService;
|
|
|
import com.chelvc.framework.base.annotation.UnifiedResponseBody;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
-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.PathVariable;
|
|
@@ -27,7 +25,6 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@Validated
|
|
|
@RestController
|
|
|
@UnifiedResponseBody
|
|
|
-@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
|
public class MerchantController {
|
|
|
@DubboReference
|
|
|
private MerchantService merchantService;
|
|
@@ -40,7 +37,7 @@ public class MerchantController {
|
|
|
*/
|
|
|
@GetMapping("/merchants")
|
|
|
public List<SimpleMerchantVO> listSimpleMerchants(@Valid MerchantQueryParam param) {
|
|
|
- return MerchantCopier.INSTANCE.copying(this.merchantService.listSimpleMerchants(param, 10));
|
|
|
+ return MerchantCopier.INSTANCE.copying(this.merchantService.listSimpleMerchants(param));
|
|
|
}
|
|
|
|
|
|
/**
|