package com.yuchen.saas.manage.system.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 业务服务
 * </p>
 *
 * @author miaoqs
 * @since 2023-09-18
 */
@Data
@ApiModel(value = "NestBusinessListVO", description = "NestBusinessListVO")
public class NestBusinessListVO  {

    /**
     * 业务服务id
     */
    @ApiModelProperty(name = "id", value = "业务服务id")
    private Long id;

    /**
     * 状态;0:未启用;1:已启用
     */
    @ApiModelProperty(name = "state", value = "状态;0:未启用;1:已启用")
    private String state;
    @ApiModelProperty(name = "businessName", value = "业务服务名称")
    private String businessName;

    @ApiModelProperty(name = "featureList", value = "功能列表")
    private List<BusinessFeatureVO> featureList;

    @Data
    public static class BusinessFeatureVO{
        /**
         * 功能id
         */
        @ApiModelProperty(name = "featureId", value = "功能id")
        private Long featureId;

        @ApiModelProperty(name = "featureName", value = "功能名称")
        private String featureName;

        /**
         * 业务服务id
         */
        @ApiModelProperty(name = "businessId", value = "业务服务id")
        private Long businessId;
    }
}
