ASNetApis.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. // MARK: - host
  11. //#if (DEBUG)
  12. //#define HostPath @"pc.bilisar.com"
  13. #define HostPath @"www.bilisar.com"
  14. //@"www.bilisar.com"
  15. //@"https://www.bilisar.com/" //测试
  16. //#else
  17. //#define HostPath @"pc.bilisar.com"//@"https://pc.bilisar.com/" //正式
  18. //#endif
  19. // MARK: - path
  20. #define ProductImgPath @"/media/catalog/product"
  21. #define CategoryImgPath @"/media/catalog/category/"
  22. // MARK: - 商品列表
  23. #define getProductListUrl BaseRequestrUrl(@"rewrite/categories/%@/products")
  24. // MARK: - 货币
  25. #define getAllCurrencyUrl BaseRequestrUrl(@"directory/currency")
  26. // MARK: - 分类列表
  27. #define getAllCategoriesUrl BaseRequestrUrl(@"rewrite/categories")
  28. // MARK: - userinfo
  29. #define registerUrl BaseRequestrUrl(@"customers")
  30. #define loginUrl BaseRequestrUrl(@"integration/customer/token")
  31. #define userinfoUrl BaseRequestrUrl(@"customers/me")
  32. #define vipInfoUrl BaseRequestrUrl(@"vip/index")
  33. #define userBirthUrl BaseRequestrUrl(@"vip/birthday")
  34. // MARK: - 修改用户信息
  35. #define putUserInfo BaseRequestrUrl(@"customers/me")
  36. //MARK: - 个人中心
  37. #define getSignStateUrl BaseRequestrUrl(@"sign/index")
  38. #define postSignUrl BaseRequestrUrl(@"sign/add")
  39. // MARK: 优惠券/礼品卡
  40. #define getUserCouponUrl BaseRequestrUrl(@"coupon/index")
  41. #define getUserGiftCardUrl BaseRequestrUrl(@"gift/index")
  42. // vip 优惠券
  43. #define getVipCouponUrl BaseRequestrUrl(@"vip/coupon")
  44. #define postAddVipCoupon BaseRequestrUrl(@"coupon/add")
  45. // MARK: 积分
  46. #define getPointsDetailUrl BaseRequestrUrl(@"points/index")
  47. #endif /* ASNetApis_h */