|
@@ -8,6 +8,7 @@ import com.inspur.customer.object.wechat.WechatAppletUserDto;
|
|
|
import com.inspur.customer.search.wechat.WechatAppletUserQuery;
|
|
import com.inspur.customer.search.wechat.WechatAppletUserQuery;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -33,7 +34,7 @@ public class WechatAppletUserController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
- public Response change(@RequestBody WechatAppletUserDto dto) {
|
|
|
|
|
|
|
+ public Response change(@RequestBody @Validated WechatAppletUserDto dto) {
|
|
|
wechatAppletUserService.change(dto);
|
|
wechatAppletUserService.change(dto);
|
|
|
return Response.buildSuccess();
|
|
return Response.buildSuccess();
|
|
|
}
|
|
}
|