feat(users): integrate user info and services APIs into 3-tab detail panel with proper padding
This commit is contained in:
@@ -95,6 +95,88 @@ export interface UserListParams extends ListParams {
|
||||
role?: string
|
||||
}
|
||||
|
||||
export interface UserAddress {
|
||||
kind?: string
|
||||
contact_name?: string
|
||||
contact_phone_number?: string
|
||||
country_code?: string
|
||||
province?: string
|
||||
city?: string
|
||||
district?: string
|
||||
address_line?: string
|
||||
}
|
||||
|
||||
export interface UserCareer {
|
||||
id?: number | string
|
||||
company_name?: string
|
||||
position?: string
|
||||
department?: string
|
||||
start_date?: string
|
||||
end_date?: string
|
||||
is_current?: boolean
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface UserEducation {
|
||||
id?: number | string
|
||||
school_name?: string
|
||||
major?: string
|
||||
degree?: string
|
||||
start_date?: string
|
||||
end_date?: string
|
||||
is_current?: boolean
|
||||
}
|
||||
|
||||
export interface UserHonor {
|
||||
id?: number | string
|
||||
title?: string
|
||||
issuer?: string
|
||||
date?: string
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface UserProfileInfo {
|
||||
user?: PlatformUser
|
||||
profile?: {
|
||||
kind?: string
|
||||
user_uid?: string
|
||||
computed_fullname?: string
|
||||
headline?: string
|
||||
bio?: string
|
||||
gender?: string
|
||||
}
|
||||
careers?: UserCareer[]
|
||||
educations?: UserEducation[]
|
||||
honors?: UserHonor[]
|
||||
addresses?: UserAddress[]
|
||||
}
|
||||
|
||||
export interface UserExpertiseService {
|
||||
id?: number
|
||||
kind?: string
|
||||
service_type?: string
|
||||
charge_type?: string
|
||||
price?: number
|
||||
currency_code?: string
|
||||
duration?: number
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export interface UserExpertise {
|
||||
id?: number
|
||||
kind?: string
|
||||
name?: string
|
||||
description?: string
|
||||
tags?: string[]
|
||||
user_uid?: string
|
||||
services?: UserExpertiseService[]
|
||||
}
|
||||
|
||||
export interface UserServicesResponse {
|
||||
expertises?: UserExpertise[]
|
||||
}
|
||||
|
||||
|
||||
export interface MeResponse extends ApiResponse<AdminUser> {
|
||||
meta: {
|
||||
roles: string[]
|
||||
|
||||
Reference in New Issue
Block a user