package com.xueyi.system.digitalmans.domain.po;

import com.xueyi.common.core.annotation.Correlation;
import com.xueyi.common.core.annotation.Correlations;
import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.core.web.entity.base.BaseEntity;
import com.xueyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serial;

import static com.xueyi.system.api.digitalmans.domain.merge.MergeGroup.Action_Resource_GROUP;


/**
 * 动作管理
 持久化对象
 *
 * @author xueyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dm_action")
public class DmActionPo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 备注 */
    @Excel(name = "备注")
    protected String remark;

    /** 供应商 */
    @Excel(name = "供应商")
    protected String supplier;

    /** 图片id */
    @NotNull(message = "resourceId不能为空")
    @Correlations({
            @Correlation(groupName = Action_Resource_GROUP, keyType = OperateConstants.SubKeyType.MAIN)
    })
    @Excel(name = "图片id")
    protected Long resourceId;

}