circle_app/circle_app/lib/network/api.dart

243 lines
3.5 KiB
Dart
Raw Normal View History

import 'package:flutter/foundation.dart';
class Api {
static const baseUrl = !kDebugMode ? 'http://192.168.3.55:2000/' : 'https://leyuan666.com/zuul-service/';
2023-08-05 18:47:26 +08:00
// static const baseUrl = 'https://leyuan666.com/zuul-service/';
// 获取验证码
static const sendCode = 'msg-service/sms/code/send';
// 登录
static const login = 'user-service/login/smscode';
//获取七牛token
static const getqiniuToken = 'up-service/oss/token';
//上传个人资料
static const UpdataUserInfo = 'user-service/register/user/info';
//获取圈子列表
static const getCircleList = 'user-service/app/config';
2023-07-17 14:37:28 +08:00
//获取vip价格
static const getVipPrice = 'mall-service/vips';
//支付宝支付
static const postAliPayOrder = 'mall-service/alipay/order';
//微信支付
static const postWxOrder = 'mall-service/wxpay/order';
2023-07-18 16:05:58 +08:00
//vip状态
static const getVipStatus = 'mall-service/my/vip';
//刷新token
static const refreshToken = 'user-service/login/token/refresh';
//圈子列表
static const getCircleInterests = 'up-service/interest/interests';
2023-07-19 17:52:53 +08:00
//版本信息
static const APP_VERSION = 'user-service/app/version';
//入圈出圈
static const outCrrcle = 'up-service/interest/';
//发布喊话
static const SendShout = 'up-service/callout';
//mine 基本信息
static const getUserMine = 'user-service/my/main';
//个人信息
static const getUserInfo = 'user-service/my/home';
//他人信息
static const getUserInfoTA = 'user-service/user/';
2023-08-07 15:49:10 +08:00
//拉黑
static const setBlock = 'user-service/user/';
//喜欢
static const setLike = 'user-service/user/';
//注销账号
static const offAccount = 'user-service/user/destroy';
//绑定新手机号
static const bindingPhoto = 'user-service/user/phone';
//黑名单列表
static const blackList = 'user-service/blacklist/users';
//我的相册
static const getMyAlbum = 'up-service/my/albums';
//他的相册
static const getTaAlbum = 'up-service/user/';
//上传相册照片
static const updataAlbum = 'up-service/album';
//删除相册照片
static const deleteAlbum = 'up-service/album/';
//催更Ta的相册
static const urgeAlbum = 'up-service/user/';
//获取催更状态
static const getUrgeStatus = 'up-service/user/';
//关注列表
static const followList = 'user-service/follow/users';
//被关注列表
static const fansList = 'user-service/fans/users';
//被关注列表
static const visitList = 'user-service/visit/users';
//举报
static const postReport = 'up-service/report';
2023-07-04 15:34:19 +08:00
//意见反馈
static const getFeedBack = 'up-service/feedback';
//意见反馈列表
static const getFeedBackList = 'up-service/my/feedbacks';
// //圈子访客记录
// static const getInterestList = 'up-service/interest/20/users';
//猜你想问
static const getQuestions = 'up-service/guide/feedback/questions';
2023-07-03 16:31:10 +08:00
2023-07-06 16:52:31 +08:00
//获取IM配置信息
static const getIMInfo = 'msg-service/im/token';
2023-07-03 16:31:10 +08:00
2023-07-04 09:58:30 +08:00
//发现页统计
2023-07-04 16:18:44 +08:00
static const getInterestsCount = 'user-service/my/statistics';
2023-07-03 16:31:10 +08:00
2023-07-04 09:58:30 +08:00
// /up-service/my/interests /up-service/interest/statistics
2023-07-03 16:31:10 +08:00
static const getMyCircleInterests = 'up-service/my/interests';
2023-07-18 16:00:00 +08:00
//缘分匹配
static const getMatch = 'msg-service/im/chat/match';
//系统通知
static const getNotices = 'msg-service/system/notices';
2023-07-26 18:05:55 +08:00
//敏感词-屏蔽词 校验
static const shieldWordCheck = 'msg-service/word/check';
}