1.部门邀请 2.app版本增加ssh上传,3.注册页面国际化适配
This commit is contained in:
1 parent
73b874382b
commit
0bde83e9c2
31 files changed
+1372
-61
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
package com.bsd.pjcloud.admin.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 部门邀请注册请求
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "部门邀请注册")
|
||||
public class DeptInviteRegisterDTO {
|
||||
|
||||
@Schema(description = "邀请 token", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String token;
|
||||
|
||||
@Schema(description = "账号(可与手机号相同)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String username;
|
||||
|
||||
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String password;
|
||||
|
||||
@Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String name;
|
||||
|
||||
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "性别 0未知 1男 2女")
|
||||
private Integer gender;
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.bsd.pjcloud.admin.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保存/更新部门邀请配置
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "部门邀请配置")
|
||||
public class SysDeptInviteSaveDTO {
|
||||
|
||||
@Schema(description = "部门ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description = "是否需要审核")
|
||||
private Boolean needAudit;
|
||||
|
||||
@Schema(description = "是否启用,默认 true")
|
||||
private Boolean enabled;
|
||||
|
||||
@Schema(description = "App 下载地址,用于生成二维码")
|
||||
private String downloadUrl;
|
||||
|
||||
@Schema(description = "邀请码类型:DIGIT6 / DIGIT8 / UUID")
|
||||
private String tokenType;
|
||||
|
||||
@Schema(description = "是否重新生成邀请码")
|
||||
private Boolean regenerateToken;
|
||||
|
||||
@Schema(description = "生效开始时间,空=立即")
|
||||
private LocalDateTime validFrom;
|
||||
|
||||
@Schema(description = "过期时间,空=长期有效")
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
@Schema(description = "是否清空过期时间(长期有效)")
|
||||
private Boolean clearExpire;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.bsd.pjcloud.admin.api.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.bsd.pjcloud.common.core.util.TenantTable;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 部门邀请注册配置
|
||||
*/
|
||||
@Data
|
||||
@TenantTable
|
||||
@TableName("sys_dept_invite")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Schema(description = "部门邀请注册配置")
|
||||
public class SysDeptInviteEntity extends Model<SysDeptInviteEntity> {
|
||||
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "目标加入部门")
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description = "邀请码")
|
||||
private String token;
|
||||
|
||||
@Schema(description = "邀请码类型 DIGIT6/DIGIT8/UUID")
|
||||
private String tokenType;
|
||||
|
||||
@Schema(description = "App 下载地址(二维码内容)")
|
||||
private String downloadUrl;
|
||||
|
||||
@Schema(description = "是否需要审核 1是0否")
|
||||
private String needAudit;
|
||||
|
||||
@Schema(description = "是否启用 1启用0停用")
|
||||
private String enabled;
|
||||
|
||||
@Schema(description = "生效开始时间,空=立即")
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private LocalDateTime validFrom;
|
||||
|
||||
@Schema(description = "过期时间,空=长期")
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String createBy;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private String updateBy;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@TableLogic
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String delFlag;
|
||||
|
||||
private Long tenantId;
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package com.bsd.pjcloud.admin.api.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 部门邀请列表项(管理端)
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "部门邀请列表")
|
||||
public class SysDeptInviteListVO {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description = "部门名称")
|
||||
private String deptName;
|
||||
|
||||
@Schema(description = "邀请码")
|
||||
private String token;
|
||||
|
||||
@Schema(description = "邀请码类型")
|
||||
private String tokenType;
|
||||
|
||||
@Schema(description = "是否需要审核 1是0否")
|
||||
private String needAudit;
|
||||
|
||||
@Schema(description = "是否启用 1启用0停用")
|
||||
private String enabled;
|
||||
|
||||
private LocalDateTime validFrom;
|
||||
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
private String remark;
|
||||
|
||||
private LocalDateTime createTime;
|
||||
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@Schema(description = "状态:ENABLED/DISABLED/NOT_STARTED/EXPIRED")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "状态文案")
|
||||
private String statusLabel;
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.bsd.pjcloud.admin.api.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 邀请入口公开信息(注册页预览)
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "部门邀请预览")
|
||||
public class SysDeptInvitePreviewVO {
|
||||
|
||||
private String token;
|
||||
|
||||
private Long deptId;
|
||||
|
||||
private String deptName;
|
||||
|
||||
@Schema(description = "是否需要审核")
|
||||
private Boolean needAudit;
|
||||
|
||||
@Schema(description = "解析到的商户ID")
|
||||
private Long merchantId;
|
||||
|
||||
@Schema(description = "商户属性")
|
||||
private String merchantAttr;
|
||||
|
||||
@Schema(description = "商户属性名称")
|
||||
private String merchantAttrLabel;
|
||||
|
||||
@Schema(description = "默认身份 DEFAULT/STUDENT")
|
||||
private String identityType;
|
||||
|
||||
@Schema(description = "默认身份名称")
|
||||
private String identityTypeLabel;
|
||||
|
||||
@Schema(description = "生效开始时间")
|
||||
private java.time.LocalDateTime validFrom;
|
||||
|
||||
@Schema(description = "过期时间")
|
||||
private java.time.LocalDateTime expireTime;
|
||||
}
|
||||
Reference in new issue
Block a user