package cn.reghao.tnb.file.app.zoss.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @author reghao
 * @date 2024-02-27 10:32:53
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class UserKey extends BaseObject<Integer> {
    @NotBlank
    @Size(min = 8, max = 8)
    private String accessKeyId;
    @NotBlank
    @Size(min = 20, max = 20)
    private String accessKeySecret;
    @NotNull
    private Long createBy;

    public UserKey(String accessKeyId, String accessKeySecret, long createBy) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.createBy = createBy;
    }
}
