parent
070e8aaa60
commit
6bf797ee13
31 changed files with 327 additions and 103 deletions
@ -0,0 +1,37 @@ |
||||
package com.daqing.framework.model.response; |
||||
|
||||
/** |
||||
* @Author: gongsj. |
||||
* @Description: 系统操作状态集接口 |
||||
* @Date:Created in 2020/09/09 15:35. |
||||
* @Modified By: |
||||
* 10000-- 通用错误码 |
||||
* 22000-- 人资管理系统错误码 |
||||
* 23000-- 人资管理系统认证系统错误码 |
||||
* 24000-- 客户管理系统错误码 |
||||
* 25000-- 客户管理系统认证系统错误码 |
||||
* 26000-- 工作流程管理系统错误码 |
||||
* 27000-- 担保业务系统错误码 |
||||
*/ |
||||
public interface ResultCode { |
||||
/** |
||||
* 操作是否成功 |
||||
* |
||||
* @return true为成功,false操作失败 |
||||
*/ |
||||
boolean success(); |
||||
|
||||
/** |
||||
* 操作码 |
||||
* |
||||
* @return 操作码 |
||||
*/ |
||||
int code(); |
||||
|
||||
/** |
||||
* 提示信息 |
||||
* |
||||
* @return 提示信息 |
||||
*/ |
||||
String message(); |
||||
} |
@ -0,0 +1,32 @@ |
||||
package com.daqing.framework.domain.hrms.request; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 新增部门请求体对象 |
||||
* |
||||
* @author gongsj |
||||
* @email gongsj@gmail.com |
||||
* @date 2020-09-07 17:12:14 |
||||
*/ |
||||
@Data |
||||
public class DeptAddRequest implements Serializable { |
||||
|
||||
/** |
||||
* 部门名称 |
||||
*/ |
||||
private String name; |
||||
/** |
||||
* 上级部门id |
||||
*/ |
||||
private Long parentId; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
private Integer sort; |
||||
} |
@ -0,0 +1,51 @@ |
||||
package com.daqing.framework.domain.hrms.response; |
||||
|
||||
import com.daqing.framework.model.response.ResultCode; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
import lombok.ToString; |
||||
|
||||
/** |
||||
* @Author: gongsj. |
||||
* @Description: 部门相关操作状态集 |
||||
* @Date:Created in 2020/09/09 15:35. |
||||
* @Modified By: |
||||
*/ |
||||
@ToString |
||||
@AllArgsConstructor |
||||
public enum DeptCode implements ResultCode { |
||||
|
||||
DEPT_NAME_ILLEGAL(false, 22001, "部门名称为空或已存在!"), |
||||
DEPT_ID_NOT_EXSIT(false, 22002, "部门id不存在!"), |
||||
DEPT_LEVEL_ILLEGAL(false, 22003, "部门层级不可超出5级!"); |
||||
|
||||
/** |
||||
* 操作是否成功 |
||||
*/ |
||||
@Getter |
||||
private boolean success; |
||||
|
||||
/** |
||||
* 状态码 |
||||
*/ |
||||
@Getter |
||||
private int code; |
||||
|
||||
/** |
||||
* 提示信息 |
||||
*/ |
||||
@Getter |
||||
private String message; |
||||
|
||||
public boolean success() { |
||||
return this.success; |
||||
} |
||||
|
||||
public int code() { |
||||
return this.code; |
||||
} |
||||
|
||||
public String message() { |
||||
return this.message; |
||||
} |
||||
} |
Loading…
Reference in new issue