1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //
- // ASNetApis.h
- // Asteria
- //
- // Created by iOS on 2023/11/25.
- //
- #ifndef ASNetApis_h
- #define ASNetApis_h
- #define BaseRequestrUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
- #define BaseWebUrl(url) ([NSString stringWithFormat:@"%@%@",@"rest/V1/",url])
- // MARK: - host
- //#if (DEBUG)
- //#define HostPath @"pc.bilisar.com"
- #define HostPath @"www.bilisar.com"
- //@"www.bilisar.com"
- //@"https://www.bilisar.com/" //测试
- //#else
- //#define HostPath @"pc.bilisar.com"//@"https://pc.bilisar.com/" //正式
- //#endif
- // MARK: - path
- #define ProductImgPath @"/media/catalog/product"
- #define CategoryImgPath @"/media/catalog/category/"
- // MARK: - 商品列表
- #define getProductListUrl BaseRequestrUrl(@"rewrite/categories/%@/products")
- // MARK: - 货币
- #define getAllCurrencyUrl BaseRequestrUrl(@"directory/currency")
- // MARK: - 分类列表
- #define getAllCategoriesUrl BaseRequestrUrl(@"rewrite/categories")
- // MARK: - userinfo
- #define registerUrl BaseRequestrUrl(@"customers")
- #define loginUrl BaseRequestrUrl(@"integration/customer/token")
- #define userinfoUrl BaseRequestrUrl(@"customers/me")
- #define vipInfoUrl BaseRequestrUrl(@"vip/index")
- #define userBirthUrl BaseRequestrUrl(@"vip/birthday")
- // MARK: - 修改用户信息
- #define putUserInfo BaseRequestrUrl(@"customers/me")
- //MARK: - 个人中心
- #define getSignStateUrl BaseRequestrUrl(@"sign/index")
- #define postSignUrl BaseRequestrUrl(@"sign/add")
- // MARK: 优惠券/礼品卡
- #define getUserCouponUrl BaseRequestrUrl(@"coupon/index")
- #define getUserGiftCardUrl BaseRequestrUrl(@"gift/index")
- // vip 优惠券
- #define getVipCouponUrl BaseRequestrUrl(@"vip/coupon")
- #define postAddVipCoupon BaseRequestrUrl(@"coupon/add")
- // MARK: 积分
- #define getPointsDetailUrl BaseRequestrUrl(@"points/index")
- #endif /* ASNetApis_h */
|