You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.4 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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()
{
}
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 接口类型
/// </summary>
[JsonProperty(PropertyName = "apiType")]
[Column("apiType")]
public string ApiType { get; set; }
/// <summary>
/// 应用标识
/// </summary>
[JsonProperty(PropertyName = "appKey")]
[Column("appKey")]
public string AppKey { get; set; }
/// <summary>
/// 应用密钥
/// </summary>
[JsonProperty(PropertyName = "appSecret")]
[Column("appSecret")]
public string AppSecret { get; set; }
/// <summary>
/// 本地化类型默认zh_CN
/// </summary>
[JsonProperty(PropertyName = "locale")]
[Column("locale")]
public string Locale { get; set; }
/// <summary>
/// 报文的格式支持XML和JSON默认JSON
/// </summary>
[JsonProperty(PropertyName = "format")]
[Column("format")]
public string Format { get; set; }
/// <summary>
/// 客户端类型(apple,iPad,iPhone,Android,desktop,WP,web)
/// </summary>
[JsonProperty(PropertyName = "client")]
[Column("client")]
public string Client { get; set; }
/// <summary>
/// 服务方法的版本号
/// </summary>
[JsonProperty(PropertyName = "version")]
[Column("version")]
public string Version { get; set; }
/// <summary>
/// 负载均衡方式
/// </summary>
[JsonProperty(PropertyName = "routing")]
[Column("routing")]
public int Routing { get; set; }
/// <summary>
/// 说明
/// </summary>
[JsonProperty(PropertyName = "memo")]
[Column("memo")]
public string Memo { get; set; }
}
}