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

This commit is contained in:
GoEdgeLab
2022-07-17 11:00:14 +08:00
parent 0e12740fd0
commit a2f8cf09a9
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
}