增加用户身份认证相关接口

This commit is contained in:
刘祥超
2022-07-17 11:00:14 +08:00
parent 6c8ab7cb94
commit 57b8a96c6d
12 changed files with 529 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
package models
import "encoding/json"
func (this *UserIdentity) DecodeFileIds() []int64 {
if len(this.FileIds) == 0 {
return []int64{}
}
var result = []int64{}
err := json.Unmarshal(this.FileIds, &result)
if err != nil {
// ignore error
}
return result
}