|
|
@@ -1,16 +1,14 @@
|
|
|
package com.inspur.customer.web.controller.wechat;
|
|
|
|
|
|
import com.alibaba.cola.dto.PageResponse;
|
|
|
+import com.alibaba.cola.dto.Response;
|
|
|
import com.alibaba.cola.dto.SingleResponse;
|
|
|
import com.inspur.customer.client.wechat.IWechatAppletUserService;
|
|
|
import com.inspur.customer.object.wechat.WechatAppletUserDto;
|
|
|
import com.inspur.customer.search.wechat.WechatAppletUserQuery;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* @author zengweijie
|
|
|
@@ -33,4 +31,10 @@ public class WechatAppletUserController {
|
|
|
public SingleResponse<WechatAppletUserDto> queryOne(WechatAppletUserQuery query) {
|
|
|
return SingleResponse.of(wechatAppletUserService.queryOne(query));
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping
|
|
|
+ public Response change(WechatAppletUserDto dto) {
|
|
|
+ wechatAppletUserService.change(dto);
|
|
|
+ return Response.buildSuccess();
|
|
|
+ }
|
|
|
}
|