mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 23:51:39 +00:00
31 lines
516 B
JavaScript
31 lines
516 B
JavaScript
import Base from './Base.js'
|
|
|
|
export default class Profile extends Base {
|
|
constructor (uid) {
|
|
super()
|
|
if (!uid) {
|
|
return false
|
|
}
|
|
let cacheObj = this._getCache(`profile:${uid}`)
|
|
if (cacheObj) {
|
|
return cacheObj
|
|
}
|
|
this.uid = uid
|
|
return this._cache()
|
|
}
|
|
|
|
getProfileData () {
|
|
|
|
}
|
|
|
|
static create (uid) {
|
|
let profile = new Profile(uid)
|
|
return profile
|
|
}
|
|
|
|
static get (uid, id) {
|
|
let profile = Profile.create(uid)
|
|
return profile.getProfileData(id)
|
|
}
|
|
}
|