model

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LivePlatform = "live_platform"
	ChannelType  = "channel_type"
)

Functions

func GetDictDataByType

func GetDictDataByType(dictType string) *[]InternalDict

Types

type Context

type Context struct {
	Session *ghttp.Session
	User    *ContextUser
}

type ContextUser

type ContextUser struct {
	Id       int
	UserName string
	Nickname string
}

type InternalDict

type InternalDict struct {
	DictType  string `json:"dictType"`
	DictLabel string `json:"dictLabel"`
	DictValue string `json:"dictValue"`
	DictSort  int    `json:"dictSort"`
}

Jump to

Keyboard shortcuts

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