package com.zhiqiyun.open.mvc.manager.params;

import com.zhiqiyun.open.core.enmus.Gender;
import com.zhiqiyun.open.core.enmus.UserState;
import com.zhiqiyun.open.core.models.RangeDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author jtoms
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = true)
public class QueryUserParam extends QueryPageParams {
    private Long id;
    private String nickName;
    private UserState state;
    private Gender gender;

    private RangeDate registerTime;

    public void setRegisterTime(List<String> registerTime) {
        this.registerTime = RangeDate.build(registerTime);
    }
}

