show

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchAddQuerySQL

func BatchAddQuerySQL(sID int64, data []*SearchWebQuery) string

BatchAddQuerySQL .

func BatchEditQuerySQL

func BatchEditQuerySQL(querys []*SearchWebQuery) string

BatchEditQuerySQL .

Types

type AiValue

type AiValue struct {
	ID int64 `json:"id"`
}

AiValue ai insert value

type AppActive

type AppActive struct {
	Name string `json:"name,omitempty"`
}

AppActive db show app_active table

func (AppActive) TableName

func (a AppActive) TableName() string

TableName .

type ChannelTab

type ChannelTab struct {
	ID       int64  `json:"id" form:"id"`
	TagID    int64  `json:"tag_id" form:"tag_id" validate:"required"`
	TabID    int64  `json:"tab_id" form:"tab_id" validate:"required"`
	Title    string `json:"title" form:"title" validate:"required"`
	Stime    int64  `json:"stime" form:"stime" validate:"required"`
	Etime    int64  `json:"etime" form:"etime" validate:"required"`
	Check    int    `json:"check" form:"check"`
	Priority int    `json:"priority" form:"priority" validate:"required"`
	UID      int64  `json:"uid" form:"uid"`
	Person   string `json:"person" form:"person"`
	IsDelete int    `json:"is_delete" form:"is_delete"`
	Status   int    `json:"status" form:"status"`
}

ChannelTab channel tab

func (ChannelTab) TableName

func (a ChannelTab) TableName() string

TableName .

type ChannelTabAP

type ChannelTabAP struct {
	TagID    int64  `form:"tag_id" validate:"required"`
	TabID    int64  `form:"tab_id" validate:"required"`
	Title    string `form:"title" validate:"required"`
	Stime    int64  `form:"stime" validate:"required"`
	Etime    int64  `form:"etime" validate:"required"`
	Priority int    `form:"priority" validate:"required"`
	UID      int64  `form:"uid" gorm:"column:uid"`
	Person   string `form:"person"`
}

ChannelTabAP channel tab add param

func (ChannelTabAP) TableName

func (a ChannelTabAP) TableName() string

TableName .

type ChannelTabLP

type ChannelTabLP struct {
	TagID  int    `form:"tag_id"`
	TabID  int    `form:"tab_id"`
	Stime  int64  `form:"stime"`
	Etime  int64  `form:"etime"`
	Status int    `form:"status"`
	Person string `form:"person"`
	Order  int    `form:"order" default:"2"`
	Ps     int    `form:"ps" default:"20"` // 分页大小
	Pn     int    `form:"pn" default:"1"`  // 第几个分页
}

ChannelTabLP channel tab list param

type ChannelTabPager

type ChannelTabPager struct {
	Item []*ChannelTab `json:"item"`
	Page common.Page   `json:"page"`
}

ChannelTabPager .

type ChannelTabUP

type ChannelTabUP struct {
	ID       int64  `form:"id" validate:"required"`
	TagID    int64  `form:"tag_id" validate:"required"`
	TabID    int64  `form:"tab_id" validate:"required"`
	Title    string `form:"title" validate:"required"`
	Stime    int64  `form:"stime" validate:"required"`
	Etime    int64  `form:"etime" validate:"required"`
	Priority int    `form:"priority" validate:"required"`
	UID      int64  `form:"uid" gorm:"column:uid"`
	Person   string `form:"person"`
}

ChannelTabUP channel tab update param

func (ChannelTabUP) TableName

func (a ChannelTabUP) TableName() string

TableName .

type EventTopic

type EventTopic struct {
	ID      int64  `json:"id" form:"id"`
	Title   string `json:"title" form:"title"`
	Desc    string `json:"desc" form:"desc"`
	Cover   string `json:"cover" form:"cover"`
	Retype  int    `json:"re_type" gorm:"column:re_type" form:"re_type"`
	Revalue string `json:"re_value" gorm:"column:re_value" form:"string"`
	Corner  string `json:"corner" form:"corner"`
	Person  string `json:"person" form:"person"`
	Deleted int    `json:"deleted" form:"deleted"`
}

EventTopic event topic

func (EventTopic) TableName

func (a EventTopic) TableName() string

TableName .

type EventTopicAP

type EventTopicAP struct {
	Title   string `json:"title" form:"title" validate:"required"`
	Desc    string `json:"desc" form:"desc" validate:"required"`
	Cover   string `json:"cover" form:"cover" validate:"required"`
	Retype  int    `json:"re_type" form:"re_type" gorm:"column:re_type" validate:"required"`
	Revalue string `json:"re_value" form:"re_value" gorm:"column:re_value" validate:"required"`
	Corner  string `json:"corner" form:"corner"`
	Person  string `json:"person" form:"person"`
}

EventTopicAP event topic add param

func (EventTopicAP) TableName

func (a EventTopicAP) TableName() string

TableName .

type EventTopicLP

type EventTopicLP struct {
	ID     int    `form:"id"`
	Person string `form:"person"`
	Title  string `form:"title"`
	Ps     int    `form:"ps" default:"20"` // 分页大小
	Pn     int    `form:"pn" default:"1"`  // 第几个分页
}

EventTopicLP event topic list param

type EventTopicPager

type EventTopicPager struct {
	Item []*EventTopic `json:"item"`
	Page common.Page   `json:"page"`
}

EventTopicPager .

type EventTopicUP

type EventTopicUP struct {
	ID      int64  `form:"id" validate:"required"`
	Title   string `json:"title" form:"title" validate:"required"`
	Desc    string `json:"desc" form:"desc" validate:"required"`
	Cover   string `json:"cover" form:"cover" validate:"required"`
	Retype  int    `json:"re_type" form:"re_type" gorm:"column:re_type" validate:"required"`
	Revalue string `json:"re_value" form:"re_value" gorm:"column:re_value" validate:"required"`
	Corner  string `json:"corner" form:"corner"`
}

EventTopicUP event topic update param

func (EventTopicUP) TableName

func (a EventTopicUP) TableName() string

TableName .

type PopularStars

type PopularStars struct {
	ID        int64      `json:"id"`
	Type      string     `json:"type"`
	Value     string     `json:"value"`
	Title     string     `json:"title"`
	LongTitle string     `json:"longtitle"`
	Content   string     `json:"content"`
	Deleted   int        `json:"deleted"`
	Person    string     `json:"person"`
	Source    int        `json:"source"`
	Status    int        `json:"status"`
	Mtime     xtime.Time `json:"mtime"`
}

PopularStars channel tab

func (PopularStars) TableName

func (a PopularStars) TableName() string

TableName .

type PopularStarsAIAP

type PopularStarsAIAP struct {
	Mid  int64   `form:"mid"`
	Aids []int64 `form:"aids"`
}

PopularStarsAIAP popular stars ai add param

type PopularStarsAP

type PopularStarsAP struct {
	Type      string `form:"type" validate:"required"`
	Value     string `form:"value" validate:"required"`
	Title     string `form:"title" validate:"required"`
	LongTitle string `form:"longtitle" validate:"required"`
	Content   string `form:"content" validate:"required"`
	UID       int64  `form:"person" gorm:"column:uid"`
	Person    string `form:"person"`
	Source    int
	Status    int
}

PopularStarsAP popular stars add param

func (PopularStarsAP) TableName

func (a PopularStarsAP) TableName() string

TableName .

type PopularStarsLP

type PopularStarsLP struct {
	ID        int    `form:"id"`
	Title     string `form:"title"`
	LongTitle string `form:"longtitle"`
	Person    string `form:"person"`
	Source    int    `form:"source" default:"-1"`
	Status    int    `form:"status"`
	Ps        int    `form:"ps" default:"20"` // 分页大小
	Pn        int    `form:"pn" default:"1"`  // 第几个分页
}

PopularStarsLP channel tab list param

type PopularStarsPager

type PopularStarsPager struct {
	Item []*PopularStars `json:"item"`
	Page common.Page     `json:"page"`
}

PopularStarsPager .

type PopularStarsUP

type PopularStarsUP struct {
	ID        int64  `form:"id" validate:"required"`
	Type      string `form:"type" validate:"required"`
	Value     string `form:"value" validate:"required"`
	Title     string `form:"title" validate:"required"`
	LongTitle string `form:"longtitle"`
	Content   string `form:"content" validate:"required"`
	Status    int    `form:"status"`
}

PopularStarsUP channel tab update param

func (PopularStarsUP) TableName

func (a PopularStarsUP) TableName() string

TableName .

type SWTimeValid

type SWTimeValid struct {
	ID        int64
	Query     string
	Priority  int
	STime     xtime.Time
	ETime     xtime.Time
	CardValue string
}

SWTimeValid option web card (online,hidden,pass,reject)

type SearchWeb

type SearchWeb struct {
	ID          int64             `json:"id" form:"id"`
	CardType    int               `json:"card_type" form:"card_type"`
	CardValue   string            `json:"card_value" form:"card_value"`
	Stime       xtime.Time        `json:"stime" form:"stime"`
	Etime       xtime.Time        `json:"etime" form:"etime"`
	Check       int               `json:"check" form:"check"`
	Status      int               `json:"status" form:"status"`
	Priority    int               `json:"priority" form:"priority"`
	Person      string            `json:"person" form:"person"`
	ApplyReason string            `json:"apply_reason" form:"apply_reason"`
	Deleted     int               `json:"deleted" form:"deleted"`
	Query       []*SearchWebQuery `json:"query" form:"query" gorm:"-"`
	Card        interface{}       `json:"card" gorm:"-"`
}

SearchWeb search web

func (SearchWeb) TableName

func (a SearchWeb) TableName() string

TableName .

type SearchWebAP

type SearchWebAP struct {
	ID          int64      `json:"id" form:"id"`
	CardType    int        `json:"card_type" form:"card_type" validate:"required"`
	CardValue   string     `json:"card_value" form:"card_value" validate:"required"`
	Stime       xtime.Time `json:"stime" form:"stime" validate:"required"`
	Etime       xtime.Time `json:"etime" form:"etime" validate:"required"`
	Priority    int        `json:"priority" form:"priority" validate:"required"`
	Check       int        `form:"check" default:"1"`
	Person      string     `json:"person" form:"person"`
	ApplyReason string     `json:"apply_reason" form:"apply_reason"`
	Query       string     `json:"query" form:"query" gorm:"-" validate:"required"`
}

SearchWebAP add param

func (SearchWebAP) TableName

func (a SearchWebAP) TableName() string

TableName .

type SearchWebCard

type SearchWebCard struct {
	ID      int64     `form:"id" gorm:"column:id" json:"id"`
	Type    int64     `form:"type" gorm:"column:type" json:"type"`
	Title   string    `form:"title" gorm:"column:title" json:"title"`
	Desc    string    `form:"desc" gorm:"column:desc" json:"desc"`
	Cover   string    `form:"cover" gorm:"column:cover" json:"cover"`
	ReType  int64     `form:"re_type" gorm:"column:re_type" json:"re_type"`
	ReValue string    `form:"re_value" gorm:"column:re_value" json:"re_value"`
	Corner  string    `form:"corner" gorm:"column:corner" json:"corner"`
	Person  string    `form:"person" gorm:"column:person" json:"person"`
	Deleted int64     `form:"deleted" gorm:"column:deleted" json:"deleted"`
	Ctime   time.Time `form:"string" gorm:"column:ctime" json:"ctime"`
	Mtime   time.Time `form:"string" gorm:"column:mtime" json:"mtime"`
}

SearchWebCard web card

func (SearchWebCard) TableName

func (a SearchWebCard) TableName() string

TableName .

type SearchWebCardAP

type SearchWebCardAP struct {
	Type    int64  `form:"type" gorm:"column:type" json:"type"`
	Title   string `form:"title" gorm:"column:title" json:"title"`
	Desc    string `form:"desc" gorm:"column:desc" json:"desc"`
	Cover   string `form:"cover" gorm:"column:cover" json:"cover"`
	ReType  int64  `form:"re_type" gorm:"column:re_type" json:"re_type"`
	ReValue string `form:"re_value" gorm:"column:re_value" json:"re_value"`
	Corner  string `form:"corner" gorm:"column:corner" json:"corner"`
	Person  string `form:"person" gorm:"column:person" json:"person"`
}

SearchWebCardAP web card add param

func (SearchWebCardAP) TableName

func (a SearchWebCardAP) TableName() string

TableName .

type SearchWebCardLP

type SearchWebCardLP struct {
	ID     int    `form:"id"`
	Person string `form:"person"`
	Title  string `form:"title"`
	Ps     int    `form:"ps" default:"20"` // 分页大小
	Pn     int    `form:"pn" default:"1"`  // 第几个分页
	STime  string `form:"stime"`
	ETime  string `form:"etime"`
}

SearchWebCardLP search web card list param

type SearchWebCardPager

type SearchWebCardPager struct {
	Item []*SearchWebCard `json:"item"`
	Page common.Page      `json:"page"`
}

SearchWebCardPager .

type SearchWebCardUP

type SearchWebCardUP struct {
	ID      int64  `form:"id" gorm:"column:id" json:"id"`
	Type    int64  `form:"type" gorm:"column:type" json:"type"`
	Title   string `form:"title" gorm:"column:title" json:"title"`
	Desc    string `form:"desc" gorm:"column:desc" json:"desc"`
	Cover   string `form:"cover" gorm:"column:cover" json:"cover"`
	ReType  int64  `form:"re_type" gorm:"column:re_type" json:"re_type"`
	ReValue string `form:"re_value" gorm:"column:re_value" json:"re_value"`
	Corner  string `form:"corner" gorm:"column:corner" json:"corner"`
}

SearchWebCardUP web card update param

func (SearchWebCardUP) TableName

func (a SearchWebCardUP) TableName() string

TableName .

type SearchWebLP

type SearchWebLP struct {
	ID     int    `form:"id"`
	Check  int    `form:"check"`
	Person string `form:"person"`
	STime  string `form:"stime"`
	ETime  string `form:"etime"`
	Ps     int    `form:"ps" default:"20"`
	Pn     int    `form:"pn" default:"1"`
}

SearchWebLP list param

type SearchWebOption

type SearchWebOption struct {
	ID     int64 `form:"id" validate:"required"`
	Check  int   `json:"check" form:"check"`
	Status int   `json:"status" form:"status"`
}

SearchWebOption option web card (online,hidden,pass,reject)

func (SearchWebOption) TableName

func (a SearchWebOption) TableName() string

TableName .

type SearchWebPager

type SearchWebPager struct {
	Item []*SearchWeb `json:"item"`
	Page common.Page  `json:"page"`
}

SearchWebPager .

type SearchWebQuery

type SearchWebQuery struct {
	ID      int64  `json:"id" form:"id"`
	SID     int64  `json:"sid" form:"sid" gorm:"column:sid"`
	Value   string `json:"value" form:"value"`
	Deleted int    `json:"deleted" form:"deleted"`
}

SearchWebQuery search web query

func (SearchWebQuery) TableName

func (a SearchWebQuery) TableName() string

TableName .

type SearchWebUP

type SearchWebUP struct {
	ID          int64      `form:"id" validate:"required"`
	CardType    int        `json:"card_type" form:"card_type"`
	CardValue   string     `json:"card_value" form:"card_value"`
	Stime       xtime.Time `json:"stime" form:"stime"`
	Etime       xtime.Time `json:"etime" form:"etime"`
	Check       int        `json:"check" form:"check"`
	Status      int        `json:"status" form:"status"`
	Priority    int        `json:"priority" form:"priority"`
	Person      string     `json:"person" form:"person"`
	ApplyReason string     `json:"apply_reason" form:"apply_reason"`
	Query       string     `json:"query" form:"query" gorm:"-" validate:"required"`
}

SearchWebUP update param

func (SearchWebUP) TableName

func (a SearchWebUP) TableName() string

TableName .

Jump to

Keyboard shortcuts

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