feat: session without autosignin will expire

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-07-18 07:54:49 +08:00
committed by Yang Luo
parent d83b86df37
commit 4a930121c4
5 changed files with 63 additions and 2 deletions

View File

@ -25,3 +25,7 @@ func StructToJson(v interface{}) string {
return string(data)
}
func JsonToStruct(data string, v interface{}) error {
return json.Unmarshal([]byte(data), v)
}