ASNetApis.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // ASNetApis.h
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/11/25.
  6. //
  7. #ifndef ASNetApis_h
  8. #define ASNetApis_h
  9. #define BaseRequestrUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
  10. #define BaseWebUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
  11. // MARK: - host
  12. //#if (DEBUG)
  13. //#define HostPath @"pc.bilisar.com"
  14. #define HostPath @"www.bilisar.com"
  15. //@"www.bilisar.com"
  16. //@"https://www.bilisar.com/" //测试
  17. //#else
  18. //#define HostPath @"pc.bilisar.com"//@"https://pc.bilisar.com/" //正式
  19. //#endif
  20. // MARK: - path
  21. #define ProductImgPath @"/media/catalog/product"
  22. #define CategoryImgPath @"/media/catalog/category/"
  23. // MARK: - 商品列表
  24. #define getProductListUrl BaseRequestrUrl(@"rewrite/categories/%@/products")
  25. // MARK: - 货币
  26. #define getAllCurrencyUrl BaseRequestrUrl(@"directory/currency")
  27. // MARK: - 分类列表
  28. #define getAllCategoriesUrl BaseRequestrUrl(@"rewrite/categories")
  29. // MARK: - userinfo
  30. #define registerUrl BaseRequestrUrl(@"customers")
  31. #define loginUrl BaseRequestrUrl(@"integration/customer/token")
  32. #define userinfoUrl BaseRequestrUrl(@"customers/me")
  33. #define vipInfoUrl BaseRequestrUrl(@"vip/index")
  34. #define userBirthUrl BaseRequestrUrl(@"vip/birthday")
  35. // MARK: - 修改用户信息
  36. #define putUserInfo BaseRequestrUrl(@"customers/me")
  37. //MARK: - 个人中心
  38. #define getSignStateUrl BaseRequestrUrl(@"sign/index")
  39. #define postSignUrl BaseRequestrUrl(@"sign/add")
  40. // MARK: 优惠券/礼品卡
  41. #define getUserCouponUrl BaseRequestrUrl(@"coupon/index")
  42. #define getUserGiftCardUrl BaseRequestrUrl(@"gift/index")
  43. // vip 优惠券
  44. #define getVipCouponUrl BaseRequestrUrl(@"vip/coupon")
  45. #define postAddVipCoupon BaseRequestrUrl(@"coupon/add")
  46. // MARK: 积分
  47. #define getPointsDetailUrl BaseRequestrUrl(@"points/index")
  48. #endif /* ASNetApis_h */