package com.xueyi.system.api.staff.domain.dto;

import com.xueyi.common.core.annotation.Correlation;
import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.core.web.validate.V_A_E;
import com.xueyi.system.api.staff.domain.po.DmStaffPo;

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

import static com.xueyi.system.api.staff.domain.merge.MergeGroup.FEATURE_DmStaffFeatureMerge_GROUP;
import static com.xueyi.system.api.staff.domain.merge.MergeGroup.STAFF_DmStaffFeatureMerge_GROUP;

public class DmFeatureDto extends DmStaffPo {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 用户组 */
    @NotEmpty(message = "用户不能为空", groups = {V_A_E.class})
    @Correlation(groupName = FEATURE_DmStaffFeatureMerge_GROUP, keyType = OperateConstants.SubKeyType.RECEIVE_ARR)
    private Long userId;

}
