﻿using System;
using System.Collections.Generic;

namespace NetSDK.DingTalk.DataContracts
{
    /// <summary>
    /// 微应用
    /// </summary>
    public class Microapp
    {
        /// <summary>
        /// 创建微应用结果
        /// </summary>
        public class CreateResult : BaseResult
        {
            /// <summary>
            /// 创建的微应用id
            /// </summary>
            public long agentid { get; set; }
        }

        /// <summary>
        /// 企业设置的微应用可见范围
        /// </summary>
        public class VisibleScope : BaseResult
        {
            /// <summary>
            /// 是否仅限管理员可见
            /// </summary>
            public bool isHidden { get; set; }

            /// <summary>
            /// 微应用的可见部门id列表，格式为JSON数组
            /// </summary>
            public IEnumerable<long> deptVisibleScopes { get; set; }

            /// <summary>
            /// 微应用的可见用户id列表，格式为JSON数组
            /// </summary>
            public IEnumerable<string> userVisibleScopes { get; set; }
        }
    }
}
