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

import com.zhiqiyun.open.core.enmus.AccountType;
import com.zhiqiyun.open.core.enmus.UserLoginLogState;
import com.zhiqiyun.open.core.models.RangeDate;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class QueryLoginLogParam extends QueryPageParams {
    private String loginAccount;
    private AccountType accountType;
    private String loginIp;
    private String loginLocal;
    private String fromSource;
    private RangeDate loginTime;
    private UserLoginLogState state;

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

}
