Fix the bridge and share entity.

This commit is contained in:
zicla
2019-04-29 02:14:12 +08:00
parent 120d9a55c8
commit ca721c78e6
12 changed files with 641 additions and 9 deletions

19
code/rest/bridge_model.go Normal file
View File

@ -0,0 +1,19 @@
package rest
import (
"github.com/eyebluecn/tank/code/core"
)
/**
* 分享记录和matter的关联表
*/
type Bridge struct {
Base
ShareUuid string `json:"shareUuid" gorm:"type:char(36)"`
MatterUuid string `json:"matterUuid" gorm:"type:char(36)"`
}
// set File's table name to be `profiles`
func (this *Bridge) TableName() string {
return core.TABLE_PREFIX + "bridge"
}