package com.greenorange.promotion.model.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户表更新请求体
 */
@Data
@Schema(description = "用户表更新请求体", requiredProperties =
        {"id", "userAccount", "userPassword", "miniOpenId", "userName", "userAvatar", "points", "userRole"})
public class UserUpdateRequest implements Serializable {

    /**
     * 用户id
     */
    @Schema(description = "用户id", example = "1")
    private Long id;

    /**
     * 账号
     */
    @Schema(description = "账号", example = "qingcheng")
    private String userAccount;

    /**
     * 密码
     */
    @Schema(description = "密码", example = "123456")
    private String userPassword;

    /**
     * 小程序openId
     */
    @Schema(description = "小程序openId", example = "fdsafdfasd")
    private String miniOpenId;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称", example = "Jack")
    private String userName;

    /**
     * 用户头像
     */
    @Schema(description = "用户头像", example = "https://www.com")
    private String userAvatar;

    /**
     * 积分
     */
    @Schema(description = "积分", example = "12000")
    private Integer points;

    /**
     * 用户角色
     */
    @Schema(description = "用户角色", example = "admin")
    private String userRole;


    @Serial
    private static final long serialVersionUID = 1L;
}
