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-09-29 02:34:41 +08:00
|
|
|
static const String accountInfo = '/app/member/info'; // 账户基本信息
|
|
|
|
|
|
|
|
|
|
/// 用户钱包,积分,商家资料信息 /app/member/account
|
|
|
|
|
static const String userAccount = '/app/member/account';
|
2025-08-21 10:50:38 +08:00
|
|
|
|
|
|
|
|
///---------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]金额
|
|
|
|
|
// {
|
2025-09-29 02:34:41 +08:00
|
|
|
// "orderType": "RECHARGE","ORDER"
|
2025-09-22 14:41:47 +08:00
|
|
|
// "clientType": "APP",
|
|
|
|
|
// "paymentMethod": "WECHAT",
|
|
|
|
|
// "paymentClient": "APP",
|
|
|
|
|
// "money": 100
|
|
|
|
|
// }
|
2025-09-29 02:34:41 +08:00
|
|
|
static const String wechatPay = '/app/payment/pay';
|
2025-09-22 14:41:47 +08:00
|
|
|
|
|
|
|
|
///余额提现
|
|
|
|
|
// {
|
|
|
|
|
// "money": "1",
|
|
|
|
|
// "method": "1",
|
|
|
|
|
// }
|
|
|
|
|
static const String withdraw = '/app/member/withdraw';
|
|
|
|
|
|
|
|
|
|
///注销 /app/member/revoked
|
|
|
|
|
static const String revoked = '/app/member/revoked';
|
|
|
|
|
|
2025-09-29 02:34:41 +08:00
|
|
|
/// 获取账单信息 [source]=3
|
|
|
|
|
static const String bills = '/app/member/bills';
|
|
|
|
|
|
|
|
|
|
/// 发送红包 /api/red-packet/send
|
|
|
|
|
// "chatType": 1, 1=单 2=群
|
|
|
|
|
// "senderId": 1950059660646047745, 发送人
|
|
|
|
|
// "receiverId": 1949004087674580994, 接收人 单聊时传
|
|
|
|
|
// "groupId": "", 群聊传
|
|
|
|
|
// "totalAmount": 1,
|
|
|
|
|
// "totalCount": 1,
|
|
|
|
|
// "remark": "恭喜发财"
|
|
|
|
|
static const String redpacket = '/app/customer/packet/send';
|
|
|
|
|
|
|
|
|
|
/// 抢红包 /api/red-packet/grab
|
|
|
|
|
// "packetId": "1954790726899544065",
|
|
|
|
|
// "memberId": "1949004087674580994"
|
|
|
|
|
static const String getpacket = '/app/customer/packet/grab';
|
2025-07-21 15:46:30 +08:00
|
|
|
}
|