美文网首页
POS API设计

POS API设计

作者: sunshine_hao | 来源:发表于2016-06-08 17:15 被阅读153次

邮检管理

主表

提交主表

  • url:/pos/rest/ptdecl/{id}
  • method:post
  • request:POS_PT_DECL对象,id=0新增,其他更新
  • response:POS_PT_DECL对象

获取主表列表信息

  • url:/pos/rest/ptdecl
  • method:get
  • request:
  • response:POS_PT_DECL_VIEW对象列表

检验检疫

  • url:/pos/rest/ptdecl/{id}/sence
  • method:post
  • request:POS_PT_DECL对象
  • response:POS_PT_DECL对象

查验

  • url:/pos/rest/ptdecl/{id}/check
  • method:post
  • request:POS_PT_DECL对象
  • response:POS_PT_DECL对象

货物表

提交货物

  • url:/pos/rest/ptdecl/{mid}/goods/{id}
  • method:post
  • request:POS_PT_GOODS对象,mid=主表id,id=子表id,id=0新增,其他更新
  • response:POS_PT_GOODS对象

删除货物

  • url:/pos/rest/ptdecl/{mid}/goods/del
  • method:post
  • request:id
  • response:

货物列表

  • url:/pos/rest/ptdecl/{mid}/goods
  • method:get
  • request:
  • response:POS_PT_GOODS对象列表

单个货物

  • url:/pos/rest/ptdecl/{mid}/goods/{id}
  • method:get
  • request:
  • response:POS_PT_GOODS对象

打印管理

提交

  • url:/pos/rest/ptdecl/print/{id}
  • method:post
  • request:POS_PT_PRINT对象
  • response:POS_PT_PRINT对象

删除

  • url:/pos/rest/ptdecl/print/del
  • method:post
  • request:id
  • response:

列表

  • url:/pos/rest/ptdecl/print
  • method:get
  • request:
  • response:POS_PT_PRINT对象列表

图片管理

提交图片

  • url:/pos/rest/img/{ptype}/{pid}/{id}
  • method:post
  • request:POS_IMG对象,mtype=对应的表名,mid=对应的表id
  • response:POS_IMG对象

删除图片

  • url:/pos/rest/img/del
  • method:post
  • request:id
  • response:

图片列表

  • url:/pos/rest/img/{ptype}/{pid}
  • method:get
  • request:
  • response:POS_IMG对象列表

单个图片

  • url:/pos/rest/img/{id}
  • method:get
  • request:
  • response:POS_IMG对象

字典

获取一个类型的数据列表

  • url:/pos/rest/dict/list/{dict_type}
  • method:get
  • request:
  • response:POS_DICT对象

右上角打印编号维护

新增打印编号

  • url:/pos/rest/print/num/add
  • method:post
  • request:StartNum=起始编号,EndNum=结束编号
  • response:OK

撤销打印编号

  • url:/pos/rest/print/num/cancel
  • method:post
  • request:id
  • response:

获取有效的编号列表

  • url:/pos/rest/print/num/list/available
  • method:get
  • request:
  • response:List<POS_PT_PRINT_NUM>

获取打印编号总列表

  • url:/pos/rest/print/num/list
  • method:get
  • request:
  • response:IList<POS_PT_PRINT_NUM>

跨境邮递物品

企业

获取企业备案总列表

  • url:/pos/rest/cp/org
  • method:get
  • request:
  • response:IList<POS_CP_ORG_INFO>

获取单个企业备案信息

  • url:/pos/rest/cp/org/{id}
  • method:get
  • request:id
  • response:POS_CP_ORG_INFO

获取单个企业备案信息

  • url:/pos/rest/cp/org/{id}
  • method:get
  • request:id
  • response:POS_CP_ORG_INFO

新增或更新企业信息

  • url:/pos/rest/org/{id}
  • method:post
  • request:POS_CP_ORG_INFO对象,id=0新增,其他更新
  • response:POS_CP_ORG_INFO

审核

  • url:/pos/rest/cp/org/{id}/check
  • method:post
  • request:result结果,1通过,2不通过
  • response:

锁定解锁

  • url:/pos/rest/cp/org/{id}/lock
  • method:post
  • request:result结果,0解锁,1锁定
  • response:

商品

获取商品备案总列表

  • url:/pos/rest/cp/goods
  • method:get
  • request:
  • response:IList<POS_CP_GOODS_INFO>

获取单个商品备案信息

  • url:/pos/rest/cp/goods/{id}
  • method:get
  • request:id
  • response:POS_CP_ORG_INFO

获取单个商品备案信息

  • url:/pos/rest/goods/{id}
  • method:get
  • request:id
  • response:POS_CP_GOODS_INFO

新增或商品信息

  • url:/pos/rest/cp/goods/{id}
  • method:post
  • request:POS_CP_GOODS_INFO对象,id=0新增,其他更新
  • response:POS_CP_GOODS_INFO

审核

  • url:/pos/rest/goods/{id}/check
  • method:post
  • request:result结果,1通过,2不通过
  • response:

锁定解锁

  • url:/pos/rest/cp/goods/{id}/lock
  • method:post
  • request:result结果,0解锁,1锁定
  • response:

申报单

查询报检信息列表

  • url:/pos/rest/cp/decl
  • method:get
  • request:result结果,0解锁,1锁定
  • response:

获取申报单信息

  • url:/pos/rest/cp/decl/{id}
  • method:get
  • request:id
  • response:POS_CP_DECL

更新申报单信息

  • url:/pos/rest/cp/decl/{id}
  • method:post
  • request:POS_CP_DECL对象
  • response:id

获取申报单货物列表

  • url:/pos/rest/cp/decl/{mid}/goods
  • method:get
  • request:mid=主单id
  • response:List<POS_CP_GOODS>

查验申报单

  • url:/pos/rest/cp/decl/{id}/check
  • method:post
  • request:result=查验结果(2=查验合格,3=查验不合格),ErrItem=不合格项,ErrReason=不合格原因
  • response:

上级领导审核

  • url:/pos/rest/cp/decl/{id}/review
  • method:post
  • request:
  • response:

抽查比例

新增或更新

  • url:/pos/rest/checkrate/{id}
  • method:post
  • request:id,POS_CHECK_RATE
  • response:POS_CHECK_RATE

获取抽查比例

  • url:/pos/rest/checkrate/{id}
  • method:get
  • request:id
  • response:POS_CHECK_RATE

获取抽查比例

  • url:/pos/rest/checkrate/{rType}/{posType}
  • method:get
  • request:rType=查验比例类型(N=常规,H=hs编码,E=企业,G=商品),posType=邮办类型(CP=跨境,PT=普通邮办)
  • response:POS_CHECK_RATE

获取抽查比例

  • url:/pos/rest/ptdecl/qrcode/record/{id}
  • method:get
  • request:id=主表id
  • response:QrcodeRecord二维码记录

截留物信息

提交截留物信息

  • url:/pos/rest/ptdecl/{mid}/retentate/{id}
  • method:post
  • request:POS_PT_GOODS对象,mid=主表id,id=子表id,id=0或者为空即新增,其他则更新
  • response:POS_PT_GOODS对象

删除截留物信息

  • url:/pos/rest/ptdecl/{mid}/retentate/{id}/del
  • method:post
  • request:mid=主表id,id=子表id
  • response:

截留物信息列表

  • url:/pos/rest/ptdecl/{mid}/retentate
  • method:get
  • request:mid=主表id
  • response:POS_PT_RETENTATE对象列表

获取单个截留物信息

  • url:/pos/rest/ptdecl/{mid}/retentate/{id}
  • method:get
  • request:mid=主表id,id=子表id
  • response:POS_PT_RETENTATE对象

货架

获取有效的货架列表

  • url:/pos/rest/ptdecl/shelf/valid
  • method:get
  • request:
  • response:POS_PT_SHELF对象列表

相关文章

网友评论

      本文标题:POS API设计

      本文链接:https://www.haomeiwen.com/subject/daujdttx.html