using System;
using System.Collections.Generic;
using System.Text;
using TEAMModelOS.SDK.Context.Attributes.Azure;
using Microsoft.Azure.Cosmos.Table;
namespace TEAMModelOS.SDK.Models.Table
{
[TableName(Name = "OperateLog")]
public class OperateLog : TableEntity
{
///
/// 日志平台:BI 、 IES5
///
public string platform { get; set; }
///
/// 日志等级,1普通 2重要 3非常重要
///
public int leve { get; set; } = 1;
///
/// 醍摩豆ID
///
public string tmdId { get; set; }
///
/// 醍摩豆名称
///
public string tmdName { get; set; }
///
/// 操作描述
///
public string msg { get; set; }
///
/// 日志类型: school-update school-del 名词-动词组合方式
///
public string type { get; set; }
///
/// 模块名称 存中文
///
public string funModule { get; set; }
///
/// 访问接口
///
public string visitApi { get; set; }
///
/// 使用范围 private school
///
public string scope { get; set; }
///
/// 数据归属 学校编码或者醍摩豆id
///
public string owner { get; set; }
///
/// 学校编码
///
public string school { get; set; }
}
[TableName(Name = "OptLog")]
public class OptLog : TableEntity
{
///
/// 日志平台:BI 、 IES5
///
public string platform { get; set; }
///
/// 醍摩豆ID
///
public string tmdId { get; set; }
///
/// 操作描述
///
public string msg { get; set; }
///
/// 日志类型: school-update school-del 名词-动词组合方式
///
public string type { get; set; }
///
/// 访问接口
///
public string url { get; set; }
///
/// 使用范围 private school
///
public string scope { get; set; }
///
/// 学校编码
///
public string school { get; set; }
///
/// 保存模式。0 Table ,1 增加保存在Blob
///
public int saveMod { get; set; } = 0;
public long time { get; set; }= DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
}
}