add
This commit is contained in:
@ -2,12 +2,15 @@ package com.qiaoba.api.system.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.qiaoba.common.base.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* 部门信息 sys_dept
|
||||
*
|
||||
@ -41,11 +44,14 @@ public class SysDept extends BaseEntity {
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@Size(min = 1, max = 20, message = "部门名称允许长度: {min}-{max}")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 显示顺序
|
||||
*/
|
||||
@Min(value = 1, message = "排序最小允许: {value}")
|
||||
@Max(value = Integer.MAX_VALUE, message = "排序最大允许: {value}")
|
||||
private Integer orderNum;
|
||||
|
||||
/**
|
||||
@ -66,6 +72,7 @@ public class SysDept extends BaseEntity {
|
||||
/**
|
||||
* 部门状态:0停用,1正常
|
||||
*/
|
||||
@NotBlank(message = "状态不能为空")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
@ -4,9 +4,15 @@ import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.qiaoba.common.base.entity.BaseEntity;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* 岗位信息 sys_post
|
||||
*
|
||||
@ -22,19 +28,28 @@ public class SysPost extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId
|
||||
@Excel(name = "岗位序号" , width = 20)
|
||||
@Excel(name = "岗位序号", width = 20)
|
||||
private String postId;
|
||||
|
||||
@Excel(name = "岗位编码" , width = 20)
|
||||
private String postCode;
|
||||
|
||||
@Excel(name = "岗位名称" , width = 20)
|
||||
@Excel(name = "岗位名称", width = 20)
|
||||
@Schema(description = "岗位名称")
|
||||
@Size(min = 1, max = 20, message = "岗位名称允许长度: {min}-{max}")
|
||||
private String postName;
|
||||
|
||||
@Excel(name = "岗位排序" , width = 20)
|
||||
private String postSort;
|
||||
@Excel(name = "岗位编码", width = 20)
|
||||
@Schema(description = "岗位编码")
|
||||
@Size(min = 1, max = 20, message = "岗位编码允许长度: {min}-{max}")
|
||||
private String postCode;
|
||||
|
||||
@Excel(name = "状态" , width = 20, replace = {"正常_1" , "异常_0"})
|
||||
@Excel(name = "岗位排序", width = 20)
|
||||
@Schema(description = "岗位排序")
|
||||
@Min(value = 1, message = "排序最小允许: {value}")
|
||||
@Max(value = Integer.MAX_VALUE, message = "排序最大允许: {value}")
|
||||
private Integer postSort;
|
||||
|
||||
@Excel(name = "状态", width = 20, replace = {"正常_1", "异常_0"})
|
||||
@Schema(description = "状态(0->禁用,1->正常)")
|
||||
@NotBlank(message = "状态不能为空")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,35 @@
|
||||
package com.qiaoba.api.system.entity.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户登录对象
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2021/10/15 0015 上午 10:05
|
||||
*/
|
||||
@Data
|
||||
public class LoginDto {
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 用户密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
private String uuid = "";
|
||||
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
package com.qiaoba.api.system.entity.param;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -18,6 +19,8 @@ public class SysDeptParam implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "部门名称")
|
||||
private String deptName;
|
||||
@Schema(description = "状态(0->禁用,1->正常)")
|
||||
private String status;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.qiaoba.api.system.entity.param;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@ -18,10 +19,13 @@ public class SysPostParam implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "岗位名称")
|
||||
private String postName;
|
||||
|
||||
@Schema(description = "岗位编码")
|
||||
private String postCode;
|
||||
|
||||
@Schema(description = "状态(0->禁用,1->正常)")
|
||||
private String status;
|
||||
|
||||
public SysPostParam() {
|
||||
|
@ -45,7 +45,7 @@ public interface SysDeptApiService {
|
||||
* @param deptId 部门Id
|
||||
* @return 部门信息
|
||||
*/
|
||||
SysDept selectById(Long deptId);
|
||||
SysDept selectById(String deptId);
|
||||
|
||||
/**
|
||||
* 删除部门
|
||||
@ -53,7 +53,7 @@ public interface SysDeptApiService {
|
||||
* @param deptId 部门Id
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int deleteById(Long deptId);
|
||||
int deleteById(String deptId);
|
||||
|
||||
/**
|
||||
* 构建前端部门树
|
||||
|
@ -5,6 +5,7 @@ import com.qiaoba.api.system.entity.param.SysMenuParam;
|
||||
import com.qiaoba.api.system.entity.vo.SysMenuVo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 菜单对外暴露接口
|
||||
@ -54,4 +55,5 @@ public interface SysMenuApiService {
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int deleteById(String menuId);
|
||||
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ public interface SysRoleApiService {
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 角色ID列表
|
||||
* @return > 0 = success
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int deleteByIds(List<String> ids);
|
||||
|
||||
@ -71,4 +71,5 @@ public interface SysRoleApiService {
|
||||
* @return 结果
|
||||
*/
|
||||
int authDataScope(DataScopeDto dto);
|
||||
|
||||
}
|
||||
|
@ -37,6 +37,14 @@ public interface SysUserApiService {
|
||||
*/
|
||||
SysUser selectById(String userId, Boolean hasPassword);
|
||||
|
||||
/**
|
||||
* 查询用户
|
||||
*
|
||||
* @param username 登录账号
|
||||
* @return SysUser
|
||||
*/
|
||||
SysUser selectByUsername(String username);
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
*
|
||||
|
Reference in New Issue
Block a user