channelmodel

package
v0.0.0-...-d64eb31 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	core.BaseModel `bson:",inline"`
	UserId         int         `json:"-" gorm:"column:user_id"`
	UserUID        *core.UID   `json:"userId" gorm:"-"`
	Panel          *core.Image `json:"panel" gorm:"column:panel"`
	Image          *core.Image `json:"image" gorm:"column:image"`
	UserName       string      `json:"userName" gorm:"column:user_name"`
	DisplayName    string      `json:"displayName" gorm:"column:display_name"`
	Description    string      `json:"description" gorm:"column:description"`
	Contact        string      `json:"contact" gorm:"column:contact"`
	Status         int         `json:"status" gorm:"column:status"`
}

func (*Channel) Mask

func (channel *Channel) Mask()

func (Channel) TableName

func (Channel) TableName() string

type ChannelCreate

type ChannelCreate struct {
	core.BaseModel `bson:",inline"`
	UserId         int         `json:"-" gorm:"column:user_id"`
	UserUID        *core.UID   `json:"userId" gorm:"-"`
	DisplayName    string      `json:"displayName" gorm:"column:display_name" validate:"required"`
	UserName       string      `json:"userName" gorm:"column:user_name" validate:"required"`
	Image          *core.Image `json:"image" gorm:"column:image"`
	Panel          *core.Image `json:"panel" gorm:"column:panel"`
	Description    string      `json:"description" gorm:"column:description"`
	Contact        string      `json:"contact" gorm:"column:contact"`
}

func (*ChannelCreate) UnMask

func (c *ChannelCreate) UnMask()

type ChannelFilter

type ChannelFilter struct {
	IsLive   *bool  `json:"isLive" form:"isLive"`
	UserName string `json:"userName" form:"userName"`
}

type ChannelUpdate

type ChannelUpdate struct {
	Panel       *core.Image `json:"panel" gorm:"column:panel"`
	Image       *core.Image `json:"-" gorm:"column:image"`
	Description string      `json:"description" gorm:"column:description"`
	Contact     string      `json:"contact" gorm:"column:contact"`
}

Jump to

Keyboard shortcuts

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