You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
608 B
19 lines
608 B
package data
|
|
|
|
type Login struct {
|
|
Username string `db:"username" validate:"required"`
|
|
Password string `db:"password" validate:"required"`
|
|
}
|
|
|
|
type Link struct {
|
|
Id int `db:"id" json:"id"`
|
|
StreamId int `db:"stream_id" json:"stream_id" form:"stream_id" validate:"required,numeric"`
|
|
Url string `db:"url" json:"url" form:"url" validate:"required,url"`
|
|
Description string `db:"description" json:"description" form:"description" validate:"required"`
|
|
}
|
|
|
|
type Stream struct {
|
|
Id int `db:"id" json:"id"`
|
|
Title string `db:"title" json:"title"`
|
|
Description string `db:"description" json:"description"`
|
|
}
|
|
|