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}; } }