using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
namespace POSV.Entity
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_apis")]
[PrimaryKey(new string[] { "Id","apiType"} , AutoIncrement = false)]
public class Apis : BaseEntity
{
public Apis()
{
}
///
/// 租户ID
///
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
///
/// 接口类型
///
[JsonProperty(PropertyName = "apiType")]
[Column("apiType")]
public string ApiType { get; set; }
///
/// 应用标识
///
[JsonProperty(PropertyName = "appKey")]
[Column("appKey")]
public string AppKey { get; set; }
///
/// 应用密钥
///
[JsonProperty(PropertyName = "appSecret")]
[Column("appSecret")]
public string AppSecret { get; set; }
///
/// 本地化类型,默认zh_CN
///
[JsonProperty(PropertyName = "locale")]
[Column("locale")]
public string Locale { get; set; }
///
/// 报文的格式,支持XML和JSON,默认JSON
///
[JsonProperty(PropertyName = "format")]
[Column("format")]
public string Format { get; set; }
///
/// 客户端类型(apple,iPad,iPhone,Android,desktop,WP,web)
///
[JsonProperty(PropertyName = "client")]
[Column("client")]
public string Client { get; set; }
///
/// 服务方法的版本号
///
[JsonProperty(PropertyName = "version")]
[Column("version")]
public string Version { get; set; }
///
/// 负载均衡方式
///
[JsonProperty(PropertyName = "routing")]
[Column("routing")]
public int Routing { get; set; }
///
/// 说明
///
[JsonProperty(PropertyName = "memo")]
[Column("memo")]
public string Memo { get; set; }
}
}