9 changed files with 290 additions and 47 deletions
@ -0,0 +1,74 @@ |
|||
package com.yxt.supervise.feign.crm; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/8/6 11:35 |
|||
*/ |
|||
public class UserProjectVo implements Query { |
|||
private String id; |
|||
private String sid; |
|||
private String projectSid; |
|||
private String userSid; |
|||
private String name; |
|||
private String orgName; |
|||
//是否绑定openid;1 未绑定 2绑定
|
|||
private String isOpenId; |
|||
|
|||
public String getIsOpenId() { |
|||
return isOpenId; |
|||
} |
|||
|
|||
public void setIsOpenId(String isOpenId) { |
|||
this.isOpenId = isOpenId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public String getOrgName() { |
|||
return orgName; |
|||
} |
|||
|
|||
public void setOrgName(String orgName) { |
|||
this.orgName = orgName; |
|||
} |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getSid() { |
|||
return sid; |
|||
} |
|||
|
|||
public void setSid(String sid) { |
|||
this.sid = sid; |
|||
} |
|||
|
|||
public String getProjectSid() { |
|||
return projectSid; |
|||
} |
|||
|
|||
public void setProjectSid(String projectSid) { |
|||
this.projectSid = projectSid; |
|||
} |
|||
|
|||
public String getUserSid() { |
|||
return userSid; |
|||
} |
|||
|
|||
public void setUserSid(String userSid) { |
|||
this.userSid = userSid; |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.supervise.feign.crm.userproject; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.supervise.feign.crm.UserProjectVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/10/10 11:35 |
|||
*/ |
|||
@Api(tags = "用户项目关联信息") |
|||
@FeignClient( |
|||
contextId = "supervise-crm-userproject", |
|||
name = "supervise-crm", |
|||
path = "userproject" |
|||
) |
|||
public interface UserProjectFeign { |
|||
@ApiOperation("根据项目sid查询不同类人") |
|||
@GetMapping("/getUserProjectBySid/{projectSid}") |
|||
public ResultBean<List<UserProjectVo>> getWarehouse(@PathVariable("projectSid") String projectSid); |
|||
@ApiOperation("根据usersid查询") |
|||
@GetMapping("/getSidByUserSid/{projectSid}/{userSid}") |
|||
public ResultBean<UserProjectVo> getSidByUserSid(@PathVariable("projectSid") String projectSid,@PathVariable("userSid") String userSid); |
|||
} |
Loading…
Reference in new issue