package com.ssyf.module.auth.domain.query;

import com.ssyf.common.core.constants.SystemConstants;
import com.ssyf.common.core.domain.query.PageQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 
 * @author huwei
 * @date 2022/11/14 15:13
 */
@Data
@Accessors(chain = true)
public class UserPageQuery extends PageQuery {

    private List<Integer> ids;

    private String phone;

    private String username;

    private String mail;

    private String nickname;
    /**
     * 状态：1 正常；2 冻结；3 已锁定；4 已注销；5 待审核；6 异常；
     * 参见{@link com.ssyf.common.core.enums.StatusAccountEnum}
     */
    private Integer status;

    /**
     * 类型
     */
    private String type;

    /**
     * 标记删除数据
     */
    private boolean deleteMark;

    @JsonFormat(pattern = SystemConstants.DATE_TIME_FORMAT, timezone = SystemConstants.DATE_TIME_TIMEZONE)
    private LocalDateTime registerStartTime;

    @JsonFormat(pattern = SystemConstants.DATE_TIME_FORMAT, timezone = SystemConstants.DATE_TIME_TIMEZONE)
    private LocalDateTime registerEndTime;

    @JsonFormat(pattern = SystemConstants.DATE_TIME_FORMAT, timezone = SystemConstants.DATE_TIME_TIMEZONE)
    private LocalDateTime loginStartTime;

    @JsonFormat(pattern = SystemConstants.DATE_TIME_FORMAT, timezone = SystemConstants.DATE_TIME_TIMEZONE)
    private LocalDateTime loginEndTime;
}
