Documentation ¶
Index ¶
- func AddDetail(detail string, max int, comment string) string
- func AddIndex(detail string, max int, name string) string
- func AddUser(u *User)
- func NewSession() *session.Manager
- func RunMigrate()
- func Session() *session.Manager
- func SetMigrate(table interface{})
- type Base
- type CommentDetail
- type DB
- type Talk
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func RunMigrate ¶
func RunMigrate()
func SetMigrate ¶
func SetMigrate(table interface{})
Types ¶
type Base ¶
type CommentDetail ¶
type Talk ¶
type Talk struct { Base UserID uuid.UUID `gorm:"type:varchar(36)"` TalkNameHex string //talk主题 Now uuid.UUID `gorm:"type:varchar(36)"` Max int DetailIndex string `gorm:"type:varchar(2048)"` CommentDetail string `gorm:"type:varchar(4096)"` }
func FindAllTalk ¶
func FindByTalkNameHex ¶
func FindTalkByHex ¶
func (*Talk) AddComment ¶
func (*Talk) ToComment ¶
func (t *Talk) ToComment() []CommentDetail
Click to show internal directories.
Click to hide internal directories.