feat: add http server
This commit is contained in:
@@ -21,4 +21,5 @@ type ChannelMessages struct {
|
||||
CreatedAt time.Time
|
||||
GroupID int64
|
||||
Published bool
|
||||
Like bool
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ type channelMessagesTable struct {
|
||||
CreatedAt postgres.ColumnTimestampz
|
||||
GroupID postgres.ColumnInteger
|
||||
Published postgres.ColumnBool
|
||||
Like postgres.ColumnBool
|
||||
|
||||
AllColumns postgres.ColumnList
|
||||
MutableColumns postgres.ColumnList
|
||||
@@ -75,8 +76,9 @@ func newChannelMessagesTableImpl(schemaName, tableName, alias string) channelMes
|
||||
CreatedAtColumn = postgres.TimestampzColumn("created_at")
|
||||
GroupIDColumn = postgres.IntegerColumn("group_id")
|
||||
PublishedColumn = postgres.BoolColumn("published")
|
||||
allColumns = postgres.ColumnList{IDColumn, ChannelIDColumn, UUIDColumn, ContentColumn, MediaColumn, PublishedAtColumn, CreatedAtColumn, GroupIDColumn, PublishedColumn}
|
||||
mutableColumns = postgres.ColumnList{ChannelIDColumn, UUIDColumn, ContentColumn, MediaColumn, PublishedAtColumn, CreatedAtColumn, GroupIDColumn, PublishedColumn}
|
||||
LikeColumn = postgres.BoolColumn("like")
|
||||
allColumns = postgres.ColumnList{IDColumn, ChannelIDColumn, UUIDColumn, ContentColumn, MediaColumn, PublishedAtColumn, CreatedAtColumn, GroupIDColumn, PublishedColumn, LikeColumn}
|
||||
mutableColumns = postgres.ColumnList{ChannelIDColumn, UUIDColumn, ContentColumn, MediaColumn, PublishedAtColumn, CreatedAtColumn, GroupIDColumn, PublishedColumn, LikeColumn}
|
||||
)
|
||||
|
||||
return channelMessagesTable{
|
||||
@@ -92,6 +94,7 @@ func newChannelMessagesTableImpl(schemaName, tableName, alias string) channelMes
|
||||
CreatedAt: CreatedAtColumn,
|
||||
GroupID: GroupIDColumn,
|
||||
Published: PublishedColumn,
|
||||
Like: LikeColumn,
|
||||
|
||||
AllColumns: allColumns,
|
||||
MutableColumns: mutableColumns,
|
||||
|
||||
Reference in New Issue
Block a user