|
@@ -170,3 +170,54 @@ export function requestDeleteNotice(id: number): Promise<CommonResponse> {
|
|
|
data: { id }
|
|
data: { id }
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// 获取收款账户(别名,兼容旧代码)
|
|
|
|
|
+export function requestPaymentAccounts(): Promise<CommonResponse<PaymentAccount[]>> {
|
|
|
|
|
+ return requestGetPaymentAccounts();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 获取消息列表(别名,兼容旧代码)
|
|
|
|
|
+export function requestNotices(data: {
|
|
|
|
|
+ page: number;
|
|
|
|
|
+ size: number;
|
|
|
|
|
+ type?: number;
|
|
|
|
|
+}): Promise<CommonPageResponse<NoticeInfo>> {
|
|
|
|
|
+ return requestGetNotices(data);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 绑定手机号
|
|
|
|
|
+export function requestBindPhone(data: {
|
|
|
|
|
+ phone: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ areaCode?: string;
|
|
|
|
|
+}): Promise<CommonResponse> {
|
|
|
|
|
+ return http.request({
|
|
|
|
|
+ url: "/api/v1/dt/user/bind/phone",
|
|
|
|
|
+ method: "post",
|
|
|
|
|
+ data
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 绑定邮箱
|
|
|
|
|
+export function requestBindEmail(data: {
|
|
|
|
|
+ email: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+}): Promise<CommonResponse> {
|
|
|
|
|
+ return http.request({
|
|
|
|
|
+ url: "/api/v1/dt/user/bind/email",
|
|
|
|
|
+ method: "post",
|
|
|
|
|
+ data
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 实名认证
|
|
|
|
|
+export function requestVerifyRealName(data: {
|
|
|
|
|
+ realName: string;
|
|
|
|
|
+ idCard: string;
|
|
|
|
|
+}): Promise<CommonResponse> {
|
|
|
|
|
+ return http.request({
|
|
|
|
|
+ url: "/api/v1/dt/user/verify",
|
|
|
|
|
+ method: "post",
|
|
|
|
|
+ data
|
|
|
|
|
+ });
|
|
|
|
|
+}
|