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

import cn.reghao.tnb.common.auth.UserContext;
import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author reghao
 * @date 2024-02-06 14:46:43
 */
@NoArgsConstructor
@Setter
@Getter
public class CamDevice extends BaseObject<Integer> {
    private Long camId;
    private String camName;
    private Boolean state;
    private LocalDateTime addAt;
    private Long addBy;
    private String pushUrl;
    private String pullUrl;

    public CamDevice(Long camId, String camName) {
        this.camId = camId;
        this.camName = camName;
        this.state = false;
        this.addAt = LocalDateTime.now();
        this.addBy = UserContext.getUserId();
    }
}
