177 lines
2.4 KiB
Dart
177 lines
2.4 KiB
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
class Api {
|
|
static const baseUrl = kDebugMode ? 'http://192.168.3.55:2000/' : 'http://192.168.3.55:2000/';
|
|
|
|
// 获取验证码
|
|
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';
|
|
|
|
|
|
|
|
//刷新token
|
|
static const refreshToken = 'user-service/login/token/refresh';
|
|
|
|
|
|
|
|
//圈子列表
|
|
static const getCircleInterests = 'up-service/interest/interests';
|
|
|
|
|
|
|
|
//入圈出圈
|
|
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/';
|
|
|
|
|
|
|
|
//我的相册
|
|
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 setBlock = 'user-service/user/';
|
|
|
|
|
|
//喜欢
|
|
static const setLike = 'user-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';
|
|
|
|
|
|
|
|
//注销账号
|
|
static const offAccount = 'user-service/user/destroy';
|
|
|
|
|
|
|
|
|
|
|
|
//黑名单列表
|
|
static const blackList = 'user-service/blacklist/users';
|
|
|
|
|
|
|
|
|
|
|
|
//绑定新手机号
|
|
static const bindingPhoto = 'user-service/user/phone';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//发现页统计
|
|
static const getInterestsCount = 'user-service/my/statistics';
|
|
|
|
|
|
// /up-service/my/interests /up-service/interest/statistics
|
|
static const getMyCircleInterests = 'up-service/my/interests';
|
|
} |