package cn.lihongjie.coal.thirdAccount.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Formula;

@Data
public class UpdateThirdAccountDto extends OrgCommonDto {
    @Comment("账号类型")
    private String accountType;

    @Formula(
            "(select i.name\n"
            + "from t_dictionary d,\n"
            + "     t_dictionary_item i\n"
            + "where d.id = i.dictionary_id\n"
            + "  and d.code = 'thirdAccount.type'\n"
            + "  and i.code = account_type)")
    private String accountTypeName;

    @Comment("用户名")
    private String username;

    @Comment("密码")
    private String password;


    @Comment("token过期时间(分钟)")
    private Long tokenExpireMinute;


}
