init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.xq.dto.app.login;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
@Data
|
||||
@Schema(description = "登陆入参模型")
|
||||
public class LoginUser {
|
||||
@Schema(description = "登陆类型")
|
||||
@NotEmpty(message = "1-手机验证码登陆 2-密码登陆")
|
||||
private Integer loginType = 1;
|
||||
@Schema(description = "登陆账号")
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String username;
|
||||
@Schema(description = "密码")
|
||||
private String password;
|
||||
@Schema(description = "登陆验证码")
|
||||
private String code;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.ruoyi.xq.dto.app.login;
|
||||
|
||||
import com.ruoyi.xq.dto.app.user.CurrentUserInfoVo;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LoginVo {
|
||||
private String token;
|
||||
private CurrentUserInfoVo userInfo;
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.xq.dto.app.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@Schema(description = "当前用户模型")
|
||||
public class CurrentUserInfoVo {
|
||||
|
||||
@Schema(description = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "邀请人ID")
|
||||
private Long inviteId;
|
||||
@Schema(description = "用户类型 0-普通用户 1-内部用户")
|
||||
private Integer type;
|
||||
/**
|
||||
* 用户号/ID号
|
||||
*/
|
||||
@Schema(description = "蜜瓜号")
|
||||
private String usercode;
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
@Schema(description = "昵称")
|
||||
private String nickname;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
/**
|
||||
* 头像
|
||||
*/
|
||||
@Schema(description = "头像")
|
||||
private String avatar;
|
||||
/**
|
||||
* 头像状态,0 系统默认头像,1 用户自定义头像
|
||||
*/
|
||||
@Schema(description = "头像状态 0-默认 1-自定义")
|
||||
private Integer avatarState;
|
||||
/**
|
||||
* 性别 0 未知 1 女 2 男
|
||||
*/
|
||||
@Schema(description = "性别 0-未知 1-女 2-男")
|
||||
private Integer gender;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Schema(description = "生日")
|
||||
private LocalDate birthday;
|
||||
@Schema(description = "年龄")
|
||||
private Integer age = 18;
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
@Schema(description = "城市ID")
|
||||
private Integer cityId;
|
||||
@Schema(description = "城市")
|
||||
private String city;
|
||||
/**
|
||||
* 是否是播主 0 否 1 是
|
||||
*/
|
||||
@Schema(description = "主播 0-否 1-是")
|
||||
private Integer isAnchor;
|
||||
/**
|
||||
* 开启视频接听 0 未开启 1 已开启
|
||||
*/
|
||||
@Schema(description = "开启视频接听 0-否 1-是")
|
||||
private Integer openVideoStatus;
|
||||
|
||||
/**
|
||||
* 状态 0 可用 1 不可用
|
||||
*/
|
||||
@Schema(description = "可用状态 0-可用 1-封禁")
|
||||
private Integer status;
|
||||
/**
|
||||
* 资料是否完成 0 未完成 1已完成
|
||||
*/
|
||||
@Schema(description = "资料是否完成 0 未完成 1已完成")
|
||||
private Integer finishStatus;
|
||||
|
||||
@Schema(description = "imToken")
|
||||
private String imToken;
|
||||
|
||||
/**
|
||||
* 相册
|
||||
*/
|
||||
// @Schema(description = "相册")
|
||||
// private List<UserAlbumDTO> userAlbumList;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.ruoyi.xq.dto.app.user;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "重置密码入参")
|
||||
public class ResetPasswordReq {
|
||||
private String mobile;
|
||||
private String code;
|
||||
private String password;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ruoyi.xq.dto.common.sms;
|
||||
|
||||
import com.ruoyi.xq.enums.common.CodeEnum;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
@Data
|
||||
public class SmsCodeReq {
|
||||
|
||||
@NotEmpty(message = "参数异常")
|
||||
private CodeEnum smsType;
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String mobile;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.ruoyi.xq.dto.common.sms;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SystemConfigResponse implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 823337632804304288L;
|
||||
private String key;
|
||||
private String desc;
|
||||
private String value;
|
||||
}
|
||||
Reference in New Issue
Block a user