贸服便利化(Tsc)系统
-
TSC 代表贸服中心人员使用的管理系统,现在由中检公司开发的系统代替
-
BPM 代表OA工作流系统
-
CCS 代表呼叫中心系统
-
PNS 代表消息推送系统
-
COS 代表外网门户系统
-
localhost 代表本机测试地址
-
dev.nbeport.com 代表测试地址(电子口岸),测试时请将下面地址的localhost替换成该测试地址
接口定义
创建请求单接口
- url: http://dev.nbeport.com/tsc/rest/issues/create
- method: http post
- request: TSC_ISSUES 对象
- response: string 返回 成功返回 TSC_ISSUES的唯一键值 代表创建成功 返回 http error code = 500 则表示创建不成功
- other system -> TSC
示范请求和应答
POST http://dev.nbeport.com/tsc/rest/issues/create HTTP/1.1
Content-Type: application/json
Content-Length: 623
{"ID":"342be0ef-b708-4305-af42-866d88c316a3","ISSUES_TYPE":"kind","CONTENT":"this is test by yujie 2016 08 17 hahaeee333 ","AFFIX":null,"INPUT_SOURCE":null,"INPUT_SOURCE_URL":null,"INPUT_ID":"yujie","INPUT_NAME":"俞杰","INPUT_TIME":"2016-07-07T00:00:00","MODIFY_ID":null,"MODIFY_NAME":null,"MODIFY_TIME":null,"ROW_STATE":"OK","REPLY_CONTENT":"回复内容1","REPLY_AFFIX":null,"REPLY_ID":"zhangsan","REPLY_NAME":"张三","REPLY_TIME":"2016-07-07T00:00:00","VERSION_NO":"12a9f24f-d36c-4f7d-83f7-e400dd2f3f7c","CREATE_TIME":"2016-08-17T13:37:05"}
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Date: Thu, 07 Jul 2016 15:14:14 GMT
Content-Length: 38
"342be0ef-b708-4305-af42-866d88c316a3"
更新请求单接口
- url: http://dev.nbeport.com/tsc/rest/issues/{id}
- method: http post
- request: TSC_ISSUES 对象
- response: string 返回 成功返回 TSC_ISSUES的唯一键值 代表更新成功 返回 http error code = 500 则表示创建不成功
- other system -> TSC
示范请求和应答
POST http://dev.nbeport.com/tsc/rest/issues/342be0ef-b708-4305-af42-866d88c316a3 HTTP/1.1
Content-Type: application/json
Content-Length: 628
{"ID":"342be0ef-b708-4305-af42-866d88c316a3","ISSUES_TYPE":"kind","CONTENT":"this is test by yujie 2016 08 17 hahaeee333 ","AFFIX":null,"INPUT_SOURCE":null,"INPUT_SOURCE_URL":null,"INPUT_ID":"yujie","INPUT_NAME":"俞杰","INPUT_TIME":"2016-07-07T00:00:00","MODIFY_ID":null,"MODIFY_NAME":null,"MODIFY_TIME":null,"ROW_STATE":"OK","REPLY_CONTENT":"回复内容1","REPLY_AFFIX":null,"REPLY_ID":"zhangsan","REPLY_NAME":"张三","REPLY_TIME":"2016-07-07T00:00:00","VERSION_NO":"12a9f24f-d36c-4f7d-83f7-e400dd2f3f7c","CREATE_TIME":"2016-08-17T13:37:05"}
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Date: Thu, 07 Jul 2016 15:14:14 GMT
Content-Length: 38
"a26c42bb-c208-41eb-87fc-f72c9b72ed60"
查询请求单接口
- url: http://dev.nbeport.com/tsc/rest/issues?field1={f1}&field2={f2}
- test1: http://dev.nbeport.com/tsc/rest/issues?TITLE=测试&PageIndex=1&PageSize=3
- test2:http://dev.nbeport.com/tsc/rest/issues?TITLE=2
- method: http get
- request: 条件名值对
- response: TSC_ISSUES 对象数组
- other system -> TSC
查询请求单详情
- url: http://dev.nbeport.com/tsc/rest/issues/{id}
- test: http://dev.nbeport.com/tsc/rest/issues/C260D0AA-1AD2-47CB-88BF-D09D1E30664E
- method: http get
- request: TSC_ISSUES对象的键值
- response: TSC_ISSUES对象
- other system -> TSC
请求单的具体结构,使用代码说明
public class TSC_ISSUES
{
[Key]
//标记
public string ID { get; set; }
//投诉咨询类别
public string ISSUES_TYPE { get; set; }
//咨询内容
public string CONTENT { get; set; }
//附件地址
public string AFFIX { get; set; }
//录入来源
public string INPUT_SOURCE { get; set; }
//录入来源URL
public string INPUT_SOURCE_URL { get; set; }
//录入的人员代码
public string INPUT_ID { get; set; }
//录入的人员姓名
public string INPUT_NAME { get; set; }
//录入时间
public Nullable<System.DateTime> INPUT_TIME { get; set; }
//更改的人员代码
public string MODIFY_ID { get; set; }
//更改的人员姓名
public string MODIFY_NAME { get; set; }
//更改时间
public Nullable<System.DateTime> MODIFY_TIME { get; set; }
//行状态,默认为OK
public string ROW_STATE { get; set; }
//回复的内容
public string REPLY_CONTENT { get; set; }
//回复的附件地址
public string REPLY_AFFIX { get; set; }
//回复的人员代码
public string REPLY_ID { get; set; }
//回复的人员姓名
public string REPLY_NAME { get; set; }
//回复的人员姓名
public Nullable<System.DateTime> REPLY_TIME { get; set; }
//版本标记,防止版本不一致的提交
public string VERSION_NO { get; set; }
//记录创建时间
public DateTime CREATE_TIME { get; set; }
}
网友评论