ASNetApis.h 1.4 KB

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