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'}
|
2025-09-22 14:41:47 +08:00
|
|
|
// /app/member/sms/code
|
|
|
|
static const String getDelCode = '/app/member/sms/code'; // 发送短信验证码 {'templateId'}
|
|
|
|
|
2025-08-21 10:50:38 +08:00
|
|
|
static const String accountInfo = '/app/member/info'; // 账户信息
|
|
|
|
|
|
|
|
///---------post
|
|
|
|
static const String login = '/auth/login'; // 登录 {'phonenumber': '', 'smsCode': '', 'clientId': '428a8310cd442757ae699df5d894f051', 'grantType': 'sms'};
|
2025-09-05 10:55:38 +08:00
|
|
|
static const String checkVersion = '/app/version/page'; // 查询app版本 {'platformType': Platform.isAndroid ? 'android' : 'ios','status': 1}
|
2025-08-21 10:50:38 +08:00
|
|
|
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-09-22 14:41:47 +08:00
|
|
|
/// 获取字典枚举 用户注销[member_revoked]
|
2025-08-28 09:44:49 +08:00
|
|
|
static const String dictionaryApi = '/app/sys/dict/type/';
|
2025-08-27 15:11:37 +08:00
|
|
|
|
2025-08-30 16:49:21 +08:00
|
|
|
// 聚合搜索
|
|
|
|
static const String aggregationSearchApi = '/app/common/search';
|
|
|
|
|
2025-09-22 14:41:47 +08:00
|
|
|
///余额充值 [money]金额
|
|
|
|
// {
|
|
|
|
// "orderType": "RECHARGE",
|
|
|
|
// "clientType": "APP",
|
|
|
|
// "paymentMethod": "WECHAT",
|
|
|
|
// "paymentClient": "APP",
|
|
|
|
// "money": 100
|
|
|
|
// }
|
|
|
|
static const String addBalance = '/app/payment/pay';
|
|
|
|
|
|
|
|
///余额提现
|
|
|
|
// {
|
|
|
|
// "money": "1",
|
|
|
|
// "method": "1",
|
|
|
|
// }
|
|
|
|
static const String withdraw = '/app/member/withdraw';
|
|
|
|
|
|
|
|
///注销 /app/member/revoked
|
|
|
|
static const String revoked = '/app/member/revoked';
|
|
|
|
|
2025-08-21 10:50:38 +08:00
|
|
|
///resource/oss/upload
|
2025-07-21 15:46:30 +08:00
|
|
|
}
|