读取用户信息时同时返回语言设置

This commit is contained in:
刘祥超
2023-12-12 11:49:05 +08:00
parent a143714370
commit cbb61d2f0e

View File

@@ -260,7 +260,7 @@ func (this *AdminDAO) FindAllAdminModules(tx *dbs.Tx) (result []*Admin, err erro
_, err = this.Query(tx). _, err = this.Query(tx).
State(AdminStateEnabled). State(AdminStateEnabled).
Attr("isOn", true). Attr("isOn", true).
Result("id", "modules", "isSuper", "fullname", "theme"). Result("id", "modules", "isSuper", "fullname", "theme", "lang").
Slice(&result). Slice(&result).
FindAll() FindAll()
return return