using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TEAMModelOS.SDK.Models.Cosmos.BI.BINormal
{
///
/// 企业基础信息
///
public class BizConfig:CosmosEntity
{
public BizConfig()
{
pk = "Business";
}
///
/// 合作方名称
///
[Required(ErrorMessage = "合作方名称 必须填写")]
public string name { get; set; }
///
/// 统一社会信用代码
///
[Required(ErrorMessage = "合作方统一社会信用代码 必须填写")]
public string credit { get; set; }
///
/// 企业log
///
public string picture { get; set; }
///
/// 联系人手机号
///
[Required(ErrorMessage = "合作方联系人手机号 必须填写")]
public long mobile { get; set; }
///
/// 企业开放的学校列表
///
public List schools { get; set; }
///
/// 企业邮箱
///
public string email { get; set; }
///
/// 官网地址
///
public string domain { get; set; }
///
/// webhook 支持多个域名, 逗号隔开 。
///
public string webhook { get; set; }
///
/// 是否https 0 否,1 是
///
public int https { get; set; } = 0;
///
/// 授权的token ,存放 scope="business",Sub="合作方id", 9e40e436-f958-498d-93cf-4242b77a17ab
///
public string token { get; set; }
public string jti { get; set; }
///
/// 创建时间
///
public long createTime { get; set; }
}
///
/// 用户信息基础信息
///
public class BizUsers : CosmosEntity
{
public BizUsers()
{
pk = "Business";
}
///
/// 人员名称
///
public string name { get; set; }
///
/// 头像
///
public string picture { get; set; }
/////
///// 醍摩豆账户
/////
//public string tmdId { get; set; }
///
/// 手机号
///
[Required(ErrorMessage = "第三方账户手机号 必须填写")]
public long mobile { get; set; }
///
/// 邮箱
///
public string mail { get; set; }
///
/// 企业关联信息
///
public List relation { get; set; }
///
/// 密码生成秘钥
///
public string salt { get; set; }
///
/// 密码
///
public string pwd { get; set; }
}
///
/// 关联企业角色
///
public class BizRel
{
public string bizId { get; set; }
public string name { get; set; }
public string picture { get; set; }
public List role { get; set; }
}
///
/// 企业学校
///
public class BizSchool
{
public string id { get; set; }
public string name { get; set; }
public string picture { get; set; }
}
///
/// 前端显示用户
///
public record BusinessUsers
{
public string id { get; set; }
public string code { get; set; }
///
/// 人员名称
///
public string name { get; set; }
///
/// 头像
///
public string picture { get; set; }
/////
///// 醍摩豆账户
/////
//public string tmdId { get; set; }
///
/// 手机号
///
public long mobile { get; set; }
///
/// 邮箱
///
public string mail { get; set; }
///
/// 密码生成秘钥
///
public string salt { get; set; }
///
/// 密码
///
public string pwd { get; set; }
///
/// 企业关联信息
///
public List relation { get; set; }
}
///
/// 前端显示企业信息
///
public record Business
{
///
/// 企业id
///
public string id { get; set; }
public string code { get; set; }
///
/// 合作方名称
///
public string name { get; set; }
///
/// 统一社会信用代码
///
public string credit { get; set; }
///
/// 企业log
///
public string picture { get; set; }
///
/// 联系人手机号
///
public long mobile { get; set; }
///
/// 企业开放的学校列表
///
public List schools { get; set; }
///
/// 企业邮箱
///
public string email { get; set; }
///
/// 官网地址
///
public string domain { get; set; }
///
/// webhook 支持多个域名, 逗号隔开 。
///
public string webhook { get; set; }
///
/// 是否https 0 否,1 是
///
public int https { get; set; } = 0;
///
/// 授权的token ,存放 scope="business",Sub="合作方id", 9e40e436-f958-498d-93cf-4242b77a17ab
///
public string token { get; set; }
public string jti { get; set; }
}
}