Add Native Sharing REST API (#1150)

* Initial draft - UNTESTED

* changes to Save() and Update()

* apply col filter and limit nanoid

* remove columns to not update
This commit is contained in:
Yash Jipkate
2021-06-09 01:14:30 +05:30
committed by GitHub
parent e80cf80d05
commit af210c8903
9 changed files with 112 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type Share struct {
LastVisitedAt time.Time `json:"lastVisitedAt"`
ResourceIDs string `json:"resourceIds" orm:"column(resource_ids)"`
ResourceType string `json:"resourceType"`
VisitCount string `json:"visitCount"`
VisitCount int `json:"visitCount"`
}
type Shares []Share