mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
20 lines
291 B
JavaScript
20 lines
291 B
JavaScript
import yapi from '../yapi.js'
|
|
class baseController{
|
|
constructor(ctx){
|
|
console.log('baseControler init...')
|
|
}
|
|
|
|
getUid(){
|
|
return 0
|
|
}
|
|
|
|
getLoginStatus(){
|
|
return true
|
|
}
|
|
|
|
getRole(){
|
|
return 'admin'
|
|
}
|
|
}
|
|
|
|
module.exports = baseController |