mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 05:02:57 +00:00
chore: 完成多批次代码优化与重构
- 重构工作流模块目录结构,迁移代码文件 - 修复类型断言空值安全问题,添加 ! 操作符 - 优化样式类名,替换 flex-cc 为标准 flex 工具类 - 更新路由标签简化文案,移除冗余注释 - 调整 ruff 配置,放宽行长度限制 - 更新 README 与多语言文案,优化项目描述 - 修复表单、图表组件的类型与样式问题 - 简化搜索表单、数据卡片的布局代码
This commit is contained in:
@@ -40,7 +40,9 @@ const OrderAPI = {
|
||||
|
||||
// ─── 支付操作 ───
|
||||
payOrder(orderId: number, body?: { pay_method?: string }) {
|
||||
return request<ApiResponse<{ pay_url?: string; qr_code?: string }>>({
|
||||
return request<
|
||||
ApiResponse<{ order_no: string; amount: number; qr_code_url?: string; pay_url?: string }>
|
||||
>({
|
||||
url: `${PAYMENT_API}/pay/${orderId}`,
|
||||
method: "post",
|
||||
data: body,
|
||||
@@ -48,7 +50,7 @@ const OrderAPI = {
|
||||
},
|
||||
|
||||
queryPaymentStatus(orderId: number) {
|
||||
return request<ApiResponse<{ status: number; message?: string }>>({
|
||||
return request<ApiResponse<{ paid: boolean; order_no?: string; amount?: number }>>({
|
||||
url: `${PAYMENT_API}/status/${orderId}`,
|
||||
method: "get",
|
||||
});
|
||||
@@ -123,9 +125,7 @@ export default OrderAPI;
|
||||
|
||||
// ─── Order 类型 ──────────────────────────────────────────
|
||||
|
||||
export interface OrderPageQuery extends PageQuery {
|
||||
tenant_id?: number;
|
||||
status?: number;
|
||||
export interface OrderPageQuery extends PageQuery, TenantByQueryParams {
|
||||
order_type?: string;
|
||||
}
|
||||
|
||||
@@ -168,8 +168,7 @@ export interface PaymentRecordTable {
|
||||
|
||||
// ─── Refund 类型 ─────────────────────────────────────────
|
||||
|
||||
export interface RefundPageQuery extends PageQuery {
|
||||
status?: number;
|
||||
export interface RefundPageQuery extends PageQuery, UserByQueryParams, TenantByQueryParams {
|
||||
}
|
||||
|
||||
export interface RefundTable {
|
||||
|
||||
Reference in New Issue
Block a user