flutter/lib/api/common_api.dart

22 lines
956 B
Dart
Raw Normal View History

2025-07-21 15:46:30 +08:00
class CommonApi {
2025-08-21 10:50:38 +08:00
///----------get
static const String getCode = '/resource/sms/code'; // 发送短信验证码 {'phonenumber'}
static const String accountInfo = '/app/member/info'; // 账户信息
///---------post
static const String login = '/auth/login'; // 登录 {'phonenumber': '', 'smsCode': '', 'clientId': '428a8310cd442757ae699df5d894f051', 'grantType': 'sms'};
static const String checkVersion = '/system/version/list'; // 查询app版本 {'platformType': Platform.isAndroid ? 'android' : 'ios','status': 1}
static const String uploadFile = '/resource/oss/upload';
///[source]=wechat_open [clientId]=428a8310cd442757ae699df5d894f051 [grantType]=social [socialState]=1
static const String wxLogin = '/app/member/bind/wechat';
// 获取字典枚举
2025-08-28 09:44:49 +08:00
static const String dictionaryApi = '/app/sys/dict/type/';
// 聚合搜索
static const String aggregationSearchApi = '/app/common/search';
2025-08-21 10:50:38 +08:00
///resource/oss/upload
2025-07-21 15:46:30 +08:00
}