完善 ip 提取功能,优化更新主题样式
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import ResourcesPage from '@/app/admin/resources/page'
|
||||
|
||||
export type User = {
|
||||
id: number
|
||||
admin_id: number
|
||||
@@ -25,11 +27,25 @@ export type Resource = {
|
||||
user_id: number
|
||||
resource_no: string
|
||||
active: boolean
|
||||
type: number
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
pss: ResourcePss
|
||||
}
|
||||
|
||||
export function name(obj: Resource) {
|
||||
switch (obj.type) {
|
||||
case 1:
|
||||
switch (obj.pss.type) {
|
||||
case 1:
|
||||
return `包时 ${obj.pss.live/60}分钟`
|
||||
case 2:
|
||||
return `包量 ${obj.pss.live/60}分钟`
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
export type ResourcePss = {
|
||||
id: number
|
||||
resource_id: number
|
||||
@@ -45,7 +61,6 @@ export type ResourcePss = {
|
||||
updated_at: Date
|
||||
}
|
||||
|
||||
|
||||
export type Bill = {
|
||||
id: number
|
||||
user_id: number
|
||||
|
||||
Reference in New Issue
Block a user