修改分页返回数据结构体

This commit is contained in:
dushixiang
2021-03-21 16:44:33 +08:00
parent 060363f5fe
commit a4296e3b1c
15 changed files with 28 additions and 22 deletions

View File

@ -0,0 +1,13 @@
package model
type ResourceSharer struct {
ID string `gorm:"primary_key" json:"id"`
ResourceId string `gorm:"index" json:"resourceId"`
ResourceType string `gorm:"index" json:"resourceType"`
UserId string `gorm:"index" json:"userId"`
UserGroupId string `gorm:"index" json:"userGroupId"`
}
func (r *ResourceSharer) TableName() string {
return "resource_sharers"
}