ASNetApis.h 902 B

12345678910111213141516171819202122232425262728293031323334353637
  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 TokenKey @"ASUserToken"
  10. #define BaseRequestrUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
  11. // MARK: - host
  12. #if (DEBUG)
  13. #define HostPath @"pc.bilisar.com"//@"www.bilisar.com"//@"https://www.bilisar.com/" //测试
  14. #else
  15. #define HostPath @"pc.bilisar.com"//@"https://pc.bilisar.com/" //正式
  16. #endif
  17. // MARK: - path
  18. // MARK: - userinfo
  19. #define registerUrl BaseRequestrUrl(@"customers")
  20. #define loginUrl BaseRequestrUrl(@"integration/customer/token")
  21. #define userinfoUrl BaseRequestrUrl(@"customers/me")
  22. #define vipInfoUrl BaseRequestrUrl(@"vip/index")
  23. #define userBirthUrl BaseRequestrUrl(@"vip/birthday")
  24. //MARK: - 个人中心
  25. #define getSignStateUrl BaseRequestrUrl(@"sign/index")
  26. #define postSignUrl BaseRequestrUrl(@"sign/add")
  27. #endif /* ASNetApis_h */