aa
This commit is contained in:
@@ -279,3 +279,34 @@ func (a *API) PoiSettleCategoryList() (poiSettleCategoryListResult *PoiSettleCat
|
||||
}
|
||||
return poiSettleCategoryListResult, err
|
||||
}
|
||||
|
||||
type PoiSettleSettlementListResult struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
BankName string `json:"bank_name"`
|
||||
BranchName string `json:"branch_name"`
|
||||
BankNum string `json:"bank_num"`
|
||||
AccountName string `json:"account_name"`
|
||||
FinancialName string `json:"financial_name"`
|
||||
FinancialPhone string `json:"financial_phone"`
|
||||
}
|
||||
|
||||
//查询连锁门店结算信息
|
||||
func (a *API) PoiSettleSettlementList() (poiSettleSettlementListResult *[]PoiSettleSettlementListResult, err error) {
|
||||
result, err := a.AccessAPI("ecommerce/poi/settle/settlement/list", true, map[string]interface{}{
|
||||
"page_num": 1,
|
||||
"page_size": 50,
|
||||
})
|
||||
if err == nil {
|
||||
utils.Map2StructByJson(result, &poiSettleSettlementListResult, false)
|
||||
}
|
||||
return poiSettleSettlementListResult, err
|
||||
}
|
||||
|
||||
//批量提交门店审核
|
||||
func (a *API) PoiSettleAuditSubmit(appPoiCodes []string) (err error) {
|
||||
_, err = a.AccessAPI("ecommerce/poi/settle/audit/submit", false, map[string]interface{}{
|
||||
"app_poi_codes": strings.Join(appPoiCodes, ","),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ func TestPackagePriceGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPoiSettleSave(t *testing.T) {
|
||||
err := api.PoiSettleSave(&PoiSettleSaveParam{
|
||||
_, err := api.PoiSettleSave(&PoiSettleSaveParam{
|
||||
Type: 0,
|
||||
ApplyInfos: []*ApplyInfo{
|
||||
&ApplyInfo{
|
||||
@@ -141,3 +141,11 @@ func TestPoiSettleCategoryList(t *testing.T) {
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestPoiSettleSettlementList(t *testing.T) {
|
||||
result, err := api.PoiSettleSettlementList()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user