Explorar el Código

接口方也加入 body 注解

吴学文 hace 7 años
padre
commit
c25d261d15

+ 2 - 1
CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java

@@ -9,6 +9,7 @@ import com.java110.dto.CommunityMemberDto;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
@@ -28,7 +29,7 @@ public class CommunityInnerServiceSMOImpl extends BaseServiceSMO implements ICom
 
 
     @Override
-    public List<CommunityMemberDto> getCommunityMembers(CommunityMemberDto communityMemberDto) {
+    public List<CommunityMemberDto> getCommunityMembers(@RequestBody CommunityMemberDto communityMemberDto) {
 
         logger.debug("communityMemberDto:{}", JSONObject.toJSONString(communityMemberDto));
 

+ 0 - 1
java110-core/src/main/java/com/java110/core/smo/community/ICommunityInnerServiceSMO.java

@@ -3,7 +3,6 @@ package com.java110.core.smo.community;
 
 import com.java110.core.feign.FeignConfiguration;
 import com.java110.dto.CommunityMemberDto;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cloud.netflix.feign.FeignClient;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;