🎨 Improve database table view

This commit is contained in:
Daniel 2024-02-16 16:02:22 +08:00
parent 491f1f58dc
commit ec2843ae8c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 55 additions and 26 deletions

View file

@ -210,6 +210,11 @@ func NewAttributeView(id string) (ret *AttributeView) {
return
}
func IsAttributeViewExist(avID string) bool {
avJSONPath := GetAttributeViewDataPath(avID)
return filelock.IsExist(avJSONPath)
}
func ParseAttributeView(avID string) (ret *AttributeView, err error) {
avJSONPath := GetAttributeViewDataPath(avID)
if !filelock.IsExist(avJSONPath) {