package com.hotwj.platform.resourceManagement.company.domain.bo;

import com.hotwj.platform.resourceManagement.company.domain.SysCompanyRole;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysCompanyRole.class, reverseConvertGenerate = false)
public class SysCompanyRoleBo extends BaseEntity {

    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    @NotBlank(message = "角色名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String roleName;

    @NotBlank(message = "角色标识不能为空", groups = {AddGroup.class, EditGroup.class})
    private String roleKey;

    @NotNull(message = "显示顺序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer roleSort;

    private String status;

    private String remark;

    private Long creatorUserId;

    private Long[] menuIds;
}

