repositories

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostCommentRow

type PostCommentRow struct {
	Id       int64     `column:"ID,pk,incr"`
	PostId   string    `column:"POST_ID"`
	UserId   string    `column:"USER_ID"`
	CreateAT time.Time `column:"CREATE_AT,act"`
	Content  string    `column:"CONTENT"`
}

func (PostCommentRow) TableInfo

func (row PostCommentRow) TableInfo() dac.TableInfo

type PostCommentRows

type PostCommentRows []PostCommentRow

type PostLikeRow

type PostLikeRow struct {
	Id     int64  `column:"ID,pk,incr"`
	PostId string `column:"POST_ID"`
	UserId string `column:"USER_ID"`
}

func (PostLikeRow) TableInfo

func (row PostLikeRow) TableInfo() dac.TableInfo

type PostRow

type PostRow struct {
	Id       string          `column:"ID,pk"`
	UserId   string          `column:"USER_ID"`
	CreateAT time.Time       `column:"CREATE_AT,act"`
	Version  int64           `column:"VERSION,aol"`
	Title    string          `column:"TITLE"`
	Content  string          `column:"CONTENT"`
	Comments PostCommentRows `column:"COMMENTS,links,Id+PostId,orders:Id@desc,length:10"`
	Likes    int64           `column:"LIKES,vc,basic,SELECT COUNT(1) FROM \"FNS\".\"POST_LIKE\" WHERE \"POST_ID\" = \"FNS\".\"POST\".\"ID\""`
}

func (PostRow) TableInfo

func (row PostRow) TableInfo() dac.TableInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL