feat(db/userstore): add avatar, email, bgColor to user profile

This commit is contained in:
hexxa 2022-03-20 17:16:39 +08:00 committed by Hexxa
parent 5f31cfc867
commit 817ced61de
14 changed files with 69 additions and 110 deletions

View file

@ -40,11 +40,14 @@ var (
Repeat: "no-repeat",
Position: "center",
Align: "fixed",
BgColor: "#ccc",
},
CSSURL: "",
LanPackURL: "",
Lan: "en_US",
Theme: "light",
Avatar: "",
Email: "",
}
)
@ -99,10 +102,12 @@ func NewKVUserStore(store kvstore.IKVStore) (*KVUserStore, error) {
}
}
return &KVUserStore{
usStore := &KVUserStore{
store: store,
mtx: &sync.RWMutex{},
}, nil
}
return usStore, nil
}
func (us *KVUserStore) Init(rootName, rootPwd string) error {