Browse Source

新增会员、用户信息、收货地址、我的余额、店铺结算接口

master
梁金满 5 years ago
parent
commit
54deee55d1
32 changed files with 415 additions and 58 deletions
  1. 17
      httprunner/api/member/app_member_buymember.yml
  2. 14
      httprunner/api/member/app_member_getmemberexpenselist.yml
  3. 16
      httprunner/api/mybalance/app_get_balance.yml
  4. 17
      httprunner/api/mybalance/app_get_billdetail.yml
  5. 16
      httprunner/api/mybalance/app_get_billlist.yml
  6. 16
      httprunner/api/mybalance/app_get_billoverview.yml
  7. 36
      httprunner/api/product/app_product_create.yml
  8. 2
      httprunner/api/product/app_product_delete.yml
  9. 2
      httprunner/api/product/app_product_get.yml
  10. 14
      httprunner/api/product/app_product_getlist.yml
  11. 38
      httprunner/api/product/app_product_update.yml
  12. 15
      httprunner/api/share/authorize_get_product.yml
  13. 15
      httprunner/api/share/authorize_get_userproduct.yml
  14. 27
      httprunner/api/shipping_address/app_create_shippingaddress.yml
  15. 19
      httprunner/api/shipping_address/app_delete_shippingaddress.yml
  16. 17
      httprunner/api/shipping_address/app_get_shippingaddressdetails.yml
  17. 7
      httprunner/api/shipping_address/app_get_shippingaddresslist.yml
  18. 29
      httprunner/api/shipping_address/app_update_shippingaddress.yml
  19. 16
      httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml
  20. 16
      httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml
  21. 19
      httprunner/api/statistics/admin_stat_getstatuser.yml
  22. 19
      httprunner/api/statistics/admin_stat_getstatvip.yml
  23. 14
      httprunner/api/statistics/admin_stat_user.yml
  24. 10
      httprunner/api/store_paper/admin_store_create_paper.yml
  25. 10
      httprunner/api/store_paper/admin_store_update_paper.yml
  26. 2
      httprunner/api/store_paper/admin_store_update_paperstatus.yml
  27. 2
      httprunner/api/user_info/app_user_getbaseinfo.yml
  28. 20
      httprunner/api/user_info/app_user_setsigninpassword.yml
  29. 22
      httprunner/api/user_info/app_user_updatememberinfo.yml
  30. 2
      httprunner/cases/case.yml
  31. 2
      httprunner/cases/user_info/app_user_getshippingaddresslist.yml
  32. 2
      httprunner/steps/user_info/app_user_getshippingaddresslist.yml

17
httprunner/api/member/app_member_buymember.yml

@ -0,0 +1,17 @@
name: app用户购买会员
variables:
apptoken: ${ENV(ATOKEN)}
memberExpenseId: 480800871886753792
base_url: ${ENV(AURL)}
request:
url: /recycle-service/member/buy/member
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
memberExpenseId: $memberExpenseId
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

14
httprunner/api/member/app_member_getmemberexpenselist.yml

@ -0,0 +1,14 @@
name: app用户获取会员资费列表
variables:
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/member/get/member-expense-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

16
httprunner/api/mybalance/app_get_balance.yml

@ -0,0 +1,16 @@
name: app获取我的余额
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/balance
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

17
httprunner/api/mybalance/app_get_billdetail.yml

@ -0,0 +1,17 @@
name: app获取账单详情
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
id: 502939998706864128
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/bill-detail/$id
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

16
httprunner/api/mybalance/app_get_billlist.yml

@ -0,0 +1,16 @@
name: app获取账单列表
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/bill-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

16
httprunner/api/mybalance/app_get_billoverview.yml

@ -0,0 +1,16 @@
name: app获取账单汇总
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/bill-overview
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

36
httprunner/api/product/app_product_create.yml

@ -1,24 +1,24 @@
name: app用户创建商品
variables:
apptoken: ${ENV(ATOKEN)}
bidType: 0
biddingInterval: 0
coverImgUrl: "string"
description: "string"
dopantRate: 0
firstCategoryId: 0
imgList: ["string"]
initialUnitPrice: 0
locCityId: 0
locDetails: "string"
locDistrictId: 0
locProvinceId: 0
lowestNum: 0
secondCategoryId: 0
stock: 0
unitPrice: 0
videoUrl: "string"
waterRate: 0
bidType: 1
biddingInterval: ""
coverImgUrl: "http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"
description: "描述:这个是一口价商品"
dopantRate: 2
firstCategoryId: 12
imgList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
initialUnitPrice: 100
locCityId: 440100
locDetails: "车陂"
locDistrictId: 440106
locProvinceId: 440000
lowestNum: 10
secondCategoryId: 2
stock: 1999
unitPrice: 100
videoUrl: ""
waterRate: 2
base_url: ${ENV(AURL)}
request:
url: /recycle-service/create/product

2
httprunner/api/product/app_product_delete.yml

@ -1,7 +1,7 @@
name: app用户删除商品
variables:
apptoken: ${ENV(ATOKEN)}
productId: 0
productId: 501513092195291136
base_url: ${ENV(AURL)}
request:
url: /recycle-service/delete/product

2
httprunner/api/product/app_product_get.yml

@ -1,7 +1,7 @@
name: app用户查询商品
variables:
apptoken: ${ENV(ATOKEN)}
productId: 0
productId: 501513092195291136
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/product/$productId

14
httprunner/api/product/app_product_getlist.yml

@ -0,0 +1,14 @@
name: app用户获取商品列表
variables:
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/product-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

38
httprunner/api/product/app_product_update.yml

@ -1,24 +1,25 @@
name: app用户修改商品
variables:
apptoken: ${ENV(ATOKEN)}
bidType: 0
biddingInterval: 0
coverImgUrl: "string"
description: "string"
dopantRate: 0
firstCategoryId: 0
imgList: ["string"]
initialUnitPrice: 0
locCityId: 0
locDetails: "string"
locDistrictId: 0
locProvinceId: 0
lowestNum: 0
secondCategoryId: 0
stock: 0
unitPrice: 0
videoUrl: "string"
waterRate: 0
productId: 501513092195291136
bidType: 1
biddingInterval: ""
coverImgUrl: "http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"
description: "描述:这个是一口价商品"
dopantRate: 2
firstCategoryId: 12
imgList: ["http://medou.oss-cn-shenzhen.aliyuncs.com/bird_user/20090917463455009.jpg"]
initialUnitPrice: 100
locCityId: 440100
locDetails: "车陂"
locDistrictId: 440106
locProvinceId: 440000
lowestNum: 10
secondCategoryId: 2
stock: 1999
unitPrice: 100
videoUrl: ""
waterRate: 2
base_url: ${ENV(AURL)}
request:
url: /recycle-service/update/product
@ -28,6 +29,7 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
json:
productId: $productId
bidType: $bidType
biddingInterval: $biddingInterval
coverImgUrl: $coverImgUrl

15
httprunner/api/share/authorize_get_product.yml

@ -0,0 +1,15 @@
name: 分享采购商品
variables:
token: ${ENV(LDAPTOKEN)}
productId: 501513092195291136
base_url: ${ENV(BURL)}
request:
url: /recycle-service/share/get/product/$productId
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

15
httprunner/api/share/authorize_get_userproduct.yml

@ -0,0 +1,15 @@
name: 分享采购商品
variables:
token: ${ENV(LDAPTOKEN)}
productId: 501513092195291136
base_url: ${ENV(BURL)}
request:
url: /recycle-service/share/get/user-product/$productId
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

27
httprunner/api/shipping_address/app_create_shippingaddress.yml

@ -0,0 +1,27 @@
name: app创建收货地址
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
details: "车陂"
districtId: 440106
isDefault: 0
phone: "18219557422"
receiver: "测试"
base_url: ${ENV(AURL)}
request:
url: /recycle-service/create/shipping-address
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
details: $details
districtId: $districtId
isDefault: $isDefault
phone: $phone
receiver: $receiver
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

19
httprunner/api/shipping_address/app_delete_shippingaddress.yml

@ -0,0 +1,19 @@
name: app删除收货地址
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
shippingAddressId: 1298553557582520321
base_url: ${ENV(AURL)}
request:
url: /recycle-service/delete/shipping-address
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
shippingAddressId: $shippingAddressId
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

17
httprunner/api/shipping_address/app_get_shippingaddressdetails.yml

@ -0,0 +1,17 @@
name: app获取收货地址详情
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
shippingAddressId: 1298553557582520321
base_url: ${ENV(AURL)}
request:
url: /recycle-service/get/shipping-address-details/$shippingAddressId
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

httprunner/api/user_info/app_user_getshippingaddresslist.yml → httprunner/api/shipping_address/app_get_shippingaddresslist.yml

@ -8,10 +8,9 @@ request:
url: /recycle-service/get/shipping-address-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

29
httprunner/api/shipping_address/app_update_shippingaddress.yml

@ -0,0 +1,29 @@
name: app修改收货地址
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
details: "车陂"
districtId: 440106
isDefault: 0
phone: "18219557422"
receiver: "测试"
shippingAddressId: 1298553557582520321
base_url: ${ENV(AURL)}
request:
url: /recycle-service/update/shipping-address
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
details: $details
districtId: $districtId
isDefault: $isDefault
phone: $phone
receiver: $receiver
shippingAddressId: $shippingAddressId
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

16
httprunner/api/shop_settlement/app_store_getstoresettlementlist .yml

@ -0,0 +1,16 @@
name: app获取结算列表
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/store/get/store-settlement-list
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

16
httprunner/api/shop_settlement/app_store_getstoresettlementoverview .yml

@ -0,0 +1,16 @@
name: app获取结算汇总
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
base_url: ${ENV(AURL)}
request:
url: /recycle-service/store/get/store-settlement-overview
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

19
httprunner/api/statistics/admin_stat_getstatuser.yml

@ -0,0 +1,19 @@
name: 后台首页累计用户数
variables:
token: ${ENV(LDAPTOKEN)}
startDate: 2020-01-01
endDate: 2020-09-15
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/stat/get/stat-user
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
params:
startDate: $startDate
endDate: $endDate
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

19
httprunner/api/statistics/admin_stat_getstatvip.yml

@ -0,0 +1,19 @@
name: 后台首页累计会员数
variables:
token: ${ENV(LDAPTOKEN)}
startDate: 2020-01-01
endDate: 2020-09-15
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/stat/get/stat-vip
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
params:
startDate: $startDate
endDate: $endDate
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

14
httprunner/api/statistics/admin_stat_user.yml

@ -0,0 +1,14 @@
name: 后台首页统计用户
variables:
token: ${ENV(LDAPTOKEN)}
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/stat/user
method: GET
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $token
validate:
- eq: ["status_code", 200]
- {"check": "content.message", "comparator": "contains", "expect": "successful"}

10
httprunner/api/store_paper/admin_store_create_paper.yml

@ -1,12 +1,12 @@
name: 后台管理员创建纸品品类
variables:
token: ${ENV(LDAPTOKEN)}
description: "string"
enable: 0
description: "描述"
enable: 1
id: 0
level: 0
name: "string"
parentId: 0
level: 1
name: "白纸"
parentId: ""
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/store/create/paper

10
httprunner/api/store_paper/admin_store_update_paper.yml

@ -1,12 +1,12 @@
name: 后台管理员编辑纸品品类
variables:
token: ${ENV(LDAPTOKEN)}
description: "string"
enable: 0
description: "描述"
enable: 1
id: 0
level: 0
name: "string"
parentId: 0
level: 1
name: "白纸"
parentId: ""
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/store/update/paper

httprunner/api/store_paper/admin_store_delete_paper.yml → httprunner/api/store_paper/admin_store_update_paperstatus.yml

@ -1,7 +1,7 @@
name: 后台管理员启用/禁用纸品品类
variables:
token: ${ENV(LDAPTOKEN)}
paperId: "string"
paperId: "496396824362487808"
base_url: ${ENV(BURL)}
request:
url: /recycle-service/admin/store/update/paper-status/$paperId

2
httprunner/api/user_info/app_user_getbaseinfo.yml

@ -12,5 +12,5 @@ request:
X-APP-ID: "1"
Authorization: $apptoken
validate:
- eq: ["status_code",$code]
- eq: ["status_code",200]
- eq: ["content.message",$message]

20
httprunner/api/user_info/app_user_setsigninpassword.yml

@ -0,0 +1,20 @@
name: app用户修改会员信息
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
password: "dc483e80a7a0bd9ef71d8cf973673924"
base_url: ${ENV(AURL)}
request:
url: /recycle-service/user/set/sign-in-password
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
password: $password
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

22
httprunner/api/user_info/app_user_updatememberinfo.yml

@ -0,0 +1,22 @@
name: app用户修改会员信息
variables:
code: 200
message: successful
apptoken: ${ENV(ATOKEN)}
avatar: ""
nickname: "test"
base_url: ${ENV(AURL)}
request:
url: /recycle-service/user/update/member-info
method: POST
headers:
Content-Type: "application/json;charset=UTF-8"
X-APP-ID: "1"
Authorization: $apptoken
json:
avatar: $avatar
nickname: $nickname
validate:
- eq: ["status_code", $code]
- eq: ["content.message", $message]

2
httprunner/cases/case.yml

@ -1,7 +1,5 @@
config:
name: "testsuites"
base_url: "http://127.0.0.1:80"
testcases:
-
name: case one

2
httprunner/cases/user_info/app_user_getshippingaddresslist.yml

@ -1,7 +1,7 @@
testcases:
-
name: app获取收货地址列表测试套件
testcase: steps/user_info/app_user_getshippingaddresslist.yml
testcase: steps/user_info/app_get_shippingaddresslist.yml
parameters:
- title-code-message:
- ["app获取收货地址列表成功",200,"successful"]

2
httprunner/steps/user_info/app_user_getshippingaddresslist.yml

@ -8,7 +8,7 @@ teststeps:
- token: content.data.token
-
name: app获取收货地址列表
api: api/user_info/app_user_getshippingaddresslist.yml
api: api/user_info/app_get_shippingaddresslist.yml
variables:
token: $token
validate:

Loading…
Cancel
Save