2025-06-07 11:28:36 +08:00
|
|
|
'use server'
|
|
|
|
|
|
|
|
|
|
import {callByUser} from './base'
|
|
|
|
|
|
|
|
|
|
export async function listInitialization(props: {
|
|
|
|
|
page: number
|
|
|
|
|
size: number
|
|
|
|
|
title?: string
|
|
|
|
|
type?: number
|
|
|
|
|
status?: number
|
|
|
|
|
create_after?: Date
|
|
|
|
|
create_before?: Date
|
|
|
|
|
update_after?: Date
|
|
|
|
|
update_before?: Date
|
|
|
|
|
short_term_package?: number
|
|
|
|
|
}) {
|
|
|
|
|
return await callByUser<{
|
|
|
|
|
short_term: string
|
|
|
|
|
short_term_monthly: string
|
|
|
|
|
long_term: string
|
|
|
|
|
long_term_monthly: string
|
|
|
|
|
list: {
|
|
|
|
|
id: number
|
|
|
|
|
title: string
|
|
|
|
|
created_at: Date
|
|
|
|
|
}[]
|
|
|
|
|
}>('/api/announcement/list', props)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type listAccountReq = {
|
2025-06-11 14:40:43 +08:00
|
|
|
resource_no: string
|
2025-06-07 11:28:36 +08:00
|
|
|
create_after: Date
|
|
|
|
|
create_before: Date
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type listAccountResp = {
|
|
|
|
|
time: Date
|
|
|
|
|
count: number
|
|
|
|
|
}[]
|
|
|
|
|
|
|
|
|
|
export async function listAccount(props: listAccountReq) {
|
|
|
|
|
return await callByUser<listAccountResp>('/api/account/list', props)
|
|
|
|
|
}
|