entity

package
v1.0.34 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 App

type App struct {
	LogoUrl       string        `json:"logoUrl" gorm:"-"`
	Keyword       string        `json:"keyword" gorm:"column:keyword"`
	Name          string        `json:"name" gorm:"column:name"`
	Status        *bool         `json:"status" gorm:"column:status"`
	DisableDesc   *string       `json:"disableDesc" gorm:"column:disable_desc"`
	AllowRegistry *bool         `json:"allowRegistry" gorm:"column:allow_registry"`
	Version       string        `json:"version" gorm:"column:version"`
	Copyright     string        `json:"copyright" gorm:"column:copyright"`
	Extra         *string       `json:"extra" gorm:"column:extra"`
	Description   *string       `json:"description" gorm:"column:description"`
	AppChannels   []*AppChannel `json:"appChannels"`
	AppFields     []*AppField   `json:"appFields"`
	Channels      []*Channel    `json:"channels" gorm:"many2many:app_channel"`
	Fields        []*Field      `json:"fields" gorm:"many2many:app_field"`
	types.BaseModel
}

type AppChannel

type AppChannel struct {
	AppId     uint32 `json:"appId" gorm:"column:app_id"`
	ChannelId uint32 `json:"channelId" gorm:"column:channel_id"`
}

type AppField

type AppField struct {
	AppId   uint32 `json:"appId" gorm:"column:app_id"`
	FieldId uint32 `json:"fieldId" gorm:"column:field_id"`
}

type Auth

type Auth struct {
	UserId      uint32  `json:"userId" gorm:"column:user_id"`
	AppId       uint32  `json:"appId" gorm:"column:app_id"`
	Status      *bool   `json:"status" gorm:"column:status"`
	DisableDesc *string `json:"disableDesc" gorm:"column:disable_desc"`
	Setting     *string `json:"setting" gorm:"column:setting"`
	Token       string  `json:"token" gorm:"column:token"`
	LoggedAt    int64   `json:"loggedAt" gorm:"column:logged_at"`
	ExpiredAt   int64   `json:"expiredAt" gorm:"column:expired_at"`
	App         *App    `json:"app"`
	types.CreateModel
}

func (*Auth) GetDisableDescString

func (a *Auth) GetDisableDescString() string

type Channel

type Channel struct {
	Keyword string  `json:"keyword" gorm:"column:keyword"`
	Name    string  `json:"name" gorm:"column:name"`
	Status  *bool   `json:"status" gorm:"column:status"`
	Ak      *string `json:"ak" gorm:"column:ak"`
	Sk      *string `json:"sk" gorm:"column:sk"`
	Extra   *string `json:"extra" gorm:"column:extra"`
	LogoUrl string  `json:"logoUrl" gorm:"-"`
	types.BaseModel
}

func (*Channel) GetAkString

func (ch *Channel) GetAkString() string

func (*Channel) GetExtraString

func (ch *Channel) GetExtraString() string

func (*Channel) GetSkString

func (ch *Channel) GetSkString() string

type ChannelTyper

type ChannelTyper struct {
	Keyword string `json:"keyword"`
	Name    string `json:"name"`
}

type Feedback

type Feedback struct {
	AppId           uint32            `json:"appId" gorm:"column:app_id"`
	UserId          uint32            `json:"userId" gorm:"column:user_id"`
	CategoryId      uint32            `json:"categoryId" gorm:"column:category_id"`
	Title           string            `json:"title" gorm:"column:title"`
	Content         string            `json:"content" gorm:"column:content"`
	Status          string            `json:"status" gorm:"column:status"`
	Images          *string           `json:"images" gorm:"column:images"`
	Contact         *string           `json:"contact" gorm:"column:contact"`
	Device          string            `json:"device" gorm:"column:device"`
	Platform        string            `json:"platform" gorm:"column:platform"`
	Version         string            `json:"version" gorm:"column:version"`
	Md5             string            `json:"md5" gorm:"column:md5"`
	ProcessedBy     *uint32           `json:"processedBy" gorm:"column:processed_by"`
	ProcessedResult *string           `json:"processedResult" gorm:"column:processed_result"`
	App             *App              `json:"app"`
	User            *User             `json:"user"`
	Category        *FeedbackCategory `json:"category" gorm:"foreignKey:category_id;references:id"`
	ImageUrls       []string          `json:"imageUrls" gorm:"-"`
	types.BaseModel
}

type FeedbackCategory

type FeedbackCategory struct {
	Name string `json:"name" gorm:"column:name"`
	types.CreateModel
}

type Field

type Field struct {
	Keyword     string  `json:"keyword" gorm:"column:keyword"`
	Type        string  `json:"type" gorm:"column:type"`
	Name        string  `json:"name" gorm:"column:name"`
	Status      *bool   `json:"status" gorm:"column:status"`
	Description *string `json:"description" gorm:"column:description"`
	types.BaseModel
}

type OAuth

type OAuth struct {
	UserId    *uint32  `json:"userId" gorm:"column:user_id"`
	ChannelId uint32   `json:"channelId" gorm:"column:channel_id"`
	AuthId    string   `json:"authId" gorm:"column:auth_id"`
	UnionId   *string  `json:"unionId" gorm:"column:union_id"`
	Token     string   `json:"token" gorm:"column:token"`
	LoggedAt  int64    `json:"loggedAt" gorm:"column:logged_at"`
	ExpiredAt int64    `json:"expiredAt" gorm:"column:expired_at"`
	Channel   *Channel `json:"channel"`
	types.CreateModel
}

func (OAuth) TableName

func (OAuth) TableName() string

type User

type User struct {
	Phone       *string `json:"phone" gorm:"column:phone"`
	Email       *string `json:"email" gorm:"column:email"`
	Username    *string `json:"username" gorm:"column:username"`
	Password    *string `json:"password" gorm:"column:password"`
	NickName    string  `json:"nickName" gorm:"column:nick_name"`
	RealName    *string `json:"realName" gorm:"column:real_name"`
	Avatar      *string `json:"avatar" gorm:"column:avatar"`
	AvatarUrl   *string `json:"avatarUrl" gorm:"-"`
	Gender      *string `json:"gender" gorm:"column:gender"`
	Status      *bool   `json:"status" gorm:"column:status"`
	DisableDesc *string `json:"disableDesc" gorm:"column:disable_desc"`
	From        string  `json:"from" gorm:"column:from"`
	FromDesc    string  `json:"fromDesc" gorm:"column:from_desc"`
	Auths       []*Auth `json:"-" gorm:"foreignKey:user_id;references:id"`
	types.DeleteModel
}

type Userinfo

type Userinfo struct {
	UserId  uint32 `json:"userId" gorm:"column:user_id"`
	FieldId uint32 `json:"field_id" gorm:"column:field_id"`
	Keyword string `json:"keyword" gorm:"column:keyword"`
	Value   string `json:"value" gorm:"column:value"`
	Field   *Field `json:"field"`
	types.BaseModel
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳