package com.zcloud.domain.persistence.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2026-01-27 11:29:42
 */
@Data
@TableName("domain_group_user")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DomainGroupUserDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String domainGroupUserId;
    //领域组id
    @ApiModelProperty(value = "领域组id")
    private String domainGroupId;
    //部门id
    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    //人员id
    @ApiModelProperty(value = "人员id")
    private Long userId;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;

    @ApiModelProperty(value = "人员名称")
    @TableField(exist = false)
    private String userName;

    public DomainGroupUserDO(String domainGroupUserId) {
        this.domainGroupUserId = domainGroupUserId;
    }

}

