1 Star 0 Fork 0

bosima/TopSdk

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Constants.cs 2.69 KB
一键复制 编辑 原始数据 按行查看 历史
maxinglun 提交于 2023-09-12 08:21 +08:00 . 初版。

namespace Top.Api
{
public sealed class Constants
{
public const string CHARSET_UTF8 = "utf-8";
public const string DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
public const string DATE_TIME_MS_FORMAT = "yyyy-MM-dd HH:mm:ss.fff";
public const string SIGN_METHOD_MD5 = "md5";
public const string SIGN_METHOD_HMAC = "hmac";
public const string SIGN_METHOD_HMAC_SHA256 = "hmac-sha256";
public const string LOG_SPLIT = "^_^";
public const string LOG_FILE_NAME = "topsdk.log";
public const string ACCEPT_ENCODING = "Accept-Encoding";
public const string CONTENT_ENCODING = "Content-Encoding";
public const string CONTENT_ENCODING_GZIP = "gzip";
public const string ERROR_RESPONSE = "error_response";
public const string ERROR_CODE = "code";
public const string ERROR_MSG = "msg";
public const string QIMEN_CLOUD_ERROR_RESPONSE = "response";
public const string QIMEN_CLOUD_ERROR_CODE = "code";
public const string QIMEN_CLOUD_ERROR_MSG = "message";
public const string SDK_VERSION = "top-sdk-net-20230831";
public const string SDK_VERSION_CLUSTER = "top-sdk-net-cluster-20230831";
public const string APP_KEY = "app_key";
public const string FORMAT = "format";
public const string METHOD = "method";
public const string TIMESTAMP = "timestamp";
public const string VERSION = "v";
public const string SIGN = "sign";
public const string SIGN_METHOD = "sign_method";
public const string PARTNER_ID = "partner_id";
public const string SESSION = "session";
public const string FORMAT_XML = "xml";
public const string FORMAT_JSON = "json";
public const string SIMPLIFY = "simplify";
public const string TARGET_APP_KEY = "target_app_key";
public const string QM_ROOT_TAG_REQ = "request";
public const string QM_ROOT_TAG_RSP = "response";
public const string QM_CUSTOMER_ID = "customerId";
public const string QM_CONTENT_TYPE = "text/xml;charset=utf-8";
public const string QM_TARGETAPPKEY = "targetAppkey";
public const string CTYPE_DEFAULT = "application/octet-stream";
public const string CTYPE_FORM_DATA = "application/x-www-form-urlencoded";
public const string CTYPE_FILE_UPLOAD = "multipart/form-data";
public const string CTYPE_TEXT_XML = "text/xml";
public const string CTYPE_TEXT_PLAIN = "text/plain";
public const string CTYPE_APPLICATION_XML = "application/xml";
public const string CTYPE_APP_JSON = "application/json";
public const int READ_BUFFER_SIZE = 1024 * 4;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/bosima/TopSdk.git
git@gitee.com:bosima/TopSdk.git
bosima
TopSdk
TopSdk
main

搜索帮助