const auth = { setId(id){ uni.setStorageSync("id",id) }, getId(){ return uni.getStorageSync("id") }, setName(name){ uni.setStorageSync("name",name) }, getName(){ return uni.getStorageSync("name") }, setToken(token){ uni.setStorageSync("token",token) }, getToken(){ return uni.getStorageSync("token") }, removeToken(){ uni.removeStorageSync("token") }, setNick(nick){ uni.setStorageSync("nick",nick) }, getNick(){ return uni.getStorageSync("nick") }, setAccount(account){ uni.setStorageSync("account",account) }, getAccount(){ return uni.getStorageSync("account") }, setPhone(phone){ uni.setStorageSync("phone",phone) }, getPhone(){ return uni.getStorageSync("phone") }, setEmail(email){ uni.setStorageSync("email",email) }, getEmail(){ return uni.getStorageSync("email") }, setAvatar(avatar){ uni.setStorageSync("avatar",avatar) }, getAvatar(){ return uni.getStorageSync("avatar") }, } export default auth