11 changed files with 94 additions and 7 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.supervise.crm.api.userproject; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @author feikefei |
||||
|
* @create 2023-09-07-9:06 |
||||
|
*/ |
||||
|
@Api(tags = "用户项目表") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-crm-UserProject", |
||||
|
name = "supervise-crm", |
||||
|
path = "userproject") |
||||
|
public interface UserProjectFeign { |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.supervise.feign.crm.userproject; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.EntityWithId; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author feikefei |
||||
|
* @create 2023-09-07-9:11 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("user_project") |
||||
|
public class UserProject extends EntityWithId{ |
||||
|
private String sid; |
||||
|
private String projectSid; |
||||
|
private String userSid; |
||||
|
private String userType; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.supervise.feign.crm.userproject; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author feikefei |
||||
|
* @create 2023-09-07-9:06 |
||||
|
*/ |
||||
|
@Api(tags = "用户项目表") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-crm-userProject", |
||||
|
name = "supervise-crm", |
||||
|
path = "userproject") |
||||
|
public interface UserProjectFeign { |
||||
|
@ApiOperation("根据userSid查询该人的项目") |
||||
|
@PostMapping("/getProjectSidByUserSid") |
||||
|
ResultBean<List<UserProject>> getProjectSidByUserSid(@RequestParam("userSid") String userSid); |
||||
|
} |
Loading…
Reference in new issue