| | |
| | | package com.ruoyi.system.domain;
|
| | |
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | |
|
| | | /**
|
| | | * 用户和岗位关联 sys_user_post
|
| | | * |
| | | * @author ruoyi
|
| | | */
|
| | | public class SysUserPost
|
| | | {
|
| | | /** 用户ID */
|
| | | private Long userId;
|
| | | |
| | | /** 岗位ID */
|
| | | private Long postId;
|
| | |
|
| | | public Long getUserId()
|
| | | {
|
| | | return userId;
|
| | | }
|
| | |
|
| | | public void setUserId(Long userId)
|
| | | {
|
| | | this.userId = userId;
|
| | | }
|
| | |
|
| | | public Long getPostId()
|
| | | {
|
| | | return postId;
|
| | | }
|
| | |
|
| | | public void setPostId(Long postId)
|
| | | {
|
| | | this.postId = postId;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String toString() {
|
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
| | | .append("userId", getUserId())
|
| | | .append("postId", getPostId())
|
| | | .toString();
|
| | | }
|
| | | }
|
| | | package com.ruoyi.system.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 用户和岗位关联 sys_user_post |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | |
| | | @Data |
| | | @TableName("sys_user_post") |
| | | @Schema(name = "用户和岗位关联") |
| | | public class SysUserPost { |
| | | |
| | | /** |
| | | * 用户ID |
| | | */ |
| | | @TableId(type = IdType.INPUT) |
| | | @Schema(name = "用户ID") |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 岗位ID |
| | | */ |
| | | @Schema(name = "岗位ID") |
| | | private Long postId; |
| | | |
| | | } |