-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from hVenus/develop
添加子帐号接口。添加两个interface.添加token刷新方法。
- Loading branch information
Showing
6 changed files
with
289 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<?php | ||
/** | ||
* 子账号API. | ||
*/ | ||
|
||
namespace hVenus\JingdongAPI\API; | ||
|
||
|
||
trait ACCOUNT | ||
{ | ||
/** | ||
* 普通 基础 jingdong.vender.childAccount.query 1. 查询员工信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderChildAccountQuery($params) { | ||
return $this->call_jd_function('jingdong.vender.childAccount.query', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.childaccount.role.query 2. 查询员工角色信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderChildAccountRoleQuery($params) { | ||
return $this->call_jd_function('jingdong.vender.childaccount.role.query', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.childaccount.dept.query 3. 查询员工所在部门信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderChildAccountDeptQuery($params) { | ||
return $this->call_jd_function('jingdong.vender.childaccount.dept.query', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.childaccount.privilege.query 4. 查询员工的权限 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderChildAccountPrivilegeQuery($params) { | ||
return $this->call_jd_function('jingdong.vender.childaccount.privilege.query', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.privilege.query 5. 查询商家的权限信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderPrivilegeQuery($params) { | ||
return $this->call_jd_function('jingdong.vender.privilege.query', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.dept.list 6. 查询部门列表 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderDeptList($params) { | ||
return $this->call_jd_function('jingdong.vender.dept.list', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.dept.get 7. 获取单个部门信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderDeptGet($params) { | ||
return $this->call_jd_function('jingdong.vender.dept.get', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.dept.add 8. 新增部门 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderDeptAdd($params) { | ||
return $this->call_jd_function('jingdong.vender.dept.add', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.dept.delete 9. 删除部门 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderDeptDelete($params) { | ||
return $this->call_jd_function('jingdong.vender.dept.delete', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.dept.modify 10. 修改部门名称 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderDeptModify($params) { | ||
return $this->call_jd_function('jingdong.vender.dept.modify', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.role.list 11. 查询角色列表 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderRoleList($params) { | ||
return $this->call_jd_function('jingdong.vender.role.list', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.role.get 12. 获取单个角色信息 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderRoleGet($params) { | ||
return $this->call_jd_function('jingdong.vender.role.get', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.role.modify 14. 修改角色名称 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderRoleModify($params) { | ||
return $this->call_jd_function('jingdong.vender.role.modify', $params); | ||
} | ||
|
||
/** | ||
* 普通 基础 jingdong.vender.announcement.list 15. 公告列表查询 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function VenderAnnouncementList($params) { | ||
return $this->call_jd_function('jingdong.vender.announcement.list', $params); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* JingDong Express Interface. | ||
*/ | ||
|
||
namespace hVenus\JingdongAPI; | ||
|
||
|
||
interface JingDongExpressInterface | ||
{ | ||
/** | ||
* 下京东快递单 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function AddExpressOrder($params); | ||
|
||
/** | ||
* 取消运单 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function CancelExpressOrder($params); | ||
|
||
/** | ||
* 获取运单详情 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function GetExpressOrder($params); | ||
|
||
/** | ||
* 获取运单路由信息 | ||
* @param $mail_no | ||
* @return mixed | ||
*/ | ||
public function GetExpressOrderRoute($mail_no); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* JingDong Warehouse Interface. | ||
*/ | ||
|
||
namespace hVenus\JingdongAPI; | ||
|
||
|
||
interface JingDongWarehouseInterface | ||
{ | ||
/** | ||
* 采购入库单 | ||
* @param $erp_order_id | ||
* @return mixed | ||
*/ | ||
public function AddEntryWarehouseOrder($erp_order_id); | ||
|
||
/** | ||
* 取消采购入库单 | ||
* @param $entry_warehouse_order_id | ||
* @return mixed | ||
*/ | ||
public function CancelEntryWarehouseOrder($entry_warehouse_order_id); | ||
|
||
/** | ||
* 仓库销售出库单 | ||
* @param $params | ||
* @return mixed | ||
*/ | ||
public function AddWarehouseSalesOrder($params); | ||
|
||
/** | ||
* 取消销售出库订单 | ||
* @param $salses_order | ||
* @return mixed | ||
*/ | ||
public function CancelWarehouseSalesOrder($salses_order); | ||
|
||
/** | ||
* 添加商品信息 | ||
* @param $goods_id | ||
* @return mixed | ||
*/ | ||
public function AddGoodsInfoToWarehouse($goods_id); | ||
} |