database

package
v0.0.0-...-ac56343 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 ApiItem

type ApiItem struct {
	ApiUnit
	ApiID int32 `gorm:"column:api_id" json:"apiId"`
	Type  uint8 `gorm:"column:type" json:"type"`
}

type ApiLoginLog

type ApiLoginLog struct {
	ID         int    `json:"id" gorm:"column:id"`
	IP         string `json:"ip" gorm:"column:ip"`
	Method     string `json:"method" gorm:"column:method"`
	LoginDate  string `json:"loginDate" gorm:"column:login_date"`
	Count      int    `json:"count" gorm:"column:count"`
	Type       uint8  `gorm:"column:type" json:"type"`
	CreateTime string `json:"createTime" gorm:"column:create_time"`
	UpdateTime string `json:"updateTime" gorm:"column:update_time"`
}

type ApiUnit

type ApiUnit struct {
	// 主键ID
	ID uint64 `grom:"primary_key;column:id" json:"id"`
	// 英文名称
	Name string `grom:"column:name" json:"name"`
	// 中文名称
	NameCn string `grom:"column:name_cn" json:"nameCn"`
	// 描述
	Desc string `grom:"column:desc" json:"desc"`
	// 父级ID
	ParentID uint64 `grom:"column:parent_id" json:"parentId"`
	// 删除标识
	Enabled uint8 `grom:"column:enabled" json:"enabled"`
	// 创建时间
	CreateTime time.Time `grom:"column:create_time" json:"createTime"`
	// 更新时间
	UpdateTime time.Time `grom:"column:update_time" json:"updateTime"`
}

type ApiUnverify

type ApiUnverify struct {
	ID         int    `gorm:"column:id" json:"id"`
	ApiID      int    `json:"apiID" gorm:"column:api_id"`
	Type       string `json:"type" gorm:"column:type"`
	Name       string `json:"name" gorm:"column:name"`
	NameCn     string `json:"nameCn" gorm:"column:name_cn"`
	Desc       string `json:"desc" gorm:"column:desc"`
	InfoDesc   string `json:"infoDesc" gorm:"column:info_desc"`
	CreateTime string `json:"createTime" gorm:"column:create_time"`
	IsHandle   uint8  `json:"isHandle" gorm:"column:is_handle"`
}

type Macros

type Macros struct {
	ID           int64     `gorm:"column:id" json:"id"`
	UpdateTime   time.Time `gorm:"column:updatetime" json:"updatetime"`
	IsVerify     uint8     `gorm:"column:is_verify" json:"isVerify"`
	MasteryID    int64     `gorm:"column:mastery_id" json:"masteryId"`
	ProfessionID int64     `gorm:"column:profession_id" json:"professionId"`

	SimpleMacro
}

type MacrosOld60

type MacrosOld60 struct {
	SimpleMacro60
	ID           int64     `gorm:"column:id" json:"id"`
	UpdateTime   time.Time `gorm:"column:updatetime" json:"updatetime"`
	IsVerify     uint8     `gorm:"column:is_verify" json:"isVerify"`
	MasteryID    int64     `gorm:"column:mastery_id" json:"masteryId"`
	ProfessionID int64     `gorm:"column:profession_id" json:"professionId"`
}

type Profession

type Profession struct {
	PID     int64 `gorm:"column:pid" json:"pid"`
	Version int8  `gorm:"column:version" json:"version"`
	SimpleProfession
}

type SearchApiItem

type SearchApiItem struct {
	SimpleApiItem
	Type string `json:"type"`
}

type SimpleApiItem

type SimpleApiItem struct {
	// api ID
	ID int32 `gorm:"column:id" json:"id"`
	// 英文名称
	Name string `grom:"column:name" json:"name"`
	// 中文名称
	NameCn string `grom:"column:name_cn" json:"nameCn"`
	// 描述
	Desc string `grom:"column:desc" json:"desc"`
}

type SimpleMacro

type SimpleMacro struct {
	Title  string `gorm:"column:title" json:"title"`
	Macro  string `gorm:"column:macro" json:"macro"`
	Author string `gorm:"column:author" json:"author"`
}

type SimpleMacro60

type SimpleMacro60 struct {
	Title  string `gorm:"column:title" json:"title"`
	Macro  string `gorm:"column:macro" json:"macro"`
	Author string `gorm:"column:author" json:"author"`
}

type SimpleProfession

type SimpleProfession struct {
	ID   int64  `gorm:"column:id" json:"id"`
	Name string `gorm:"column:name" json:"name"`
}

Jump to

Keyboard shortcuts

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