PicConfig.java 670 Bytes
package com.viontech.storage.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/11/8
 */

@Getter
@Setter
@Accessors(chain = true)
@TableName("PIC_CONFIG")
public class PicConfig extends BaseModel {

    private String name;
    private Boolean enabled;
    private Long captionSetId;
    private Integer pictureQuality;
    private Integer type;
    @JsonIgnore
    private String context;

    public Integer calPicCount() {
        return (type / 10) * (type % 10);
    }
}