registry/backend/yjs/User.yjs
PhiTer9426 398869c9a6 init
2022-05-02 23:12:25 +08:00

27 lines
918 B
Plaintext

module User{
export function getRole(){
//{"role":"anymo...","code":0}
return {"role":"admin","code": 0};
}
export function getUserInfo(arg){
return {"pubkey":"xxx","name":"xx","phone":"xxx","descripstion":"","permission":"admin,user,"};
}
//{"pubkey":"xxx","name":"xx","phone":"xxx","description":"","permission":"admin,user,"}
export function updateUserInfo(arg){
return {"code":1};
}
export function addUserInfo(arg){
return {"code":1};
}
//...
export function getUserList(arg){
var ret = [];
ret.push(
{"pubkey":"xxx","name":"xx","phone":"xxx","description":"xxxxxxx","permission":"admin,user"},
{"pubkey":"xxx","name":"xx","phone":"xxx","description":"xxxxxxx","permission":"admin"},
{"pubkey":"xxx","name":"xx","phone":"xxx","description":"xxxxxxx","permission":"user"}
);
return {"total":10,"data":ret,"code":0};
}
}