entity

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Business

type Business struct {
	ServerId    uint32  `json:"serverId" gorm:"column:server_id"`
	Keyword     string  `json:"keyword" gorm:"column:keyword"`
	Type        string  `json:"type" gorm:"column:type"`
	Description *string `json:"description" gorm:"column:description"`
	types.BaseModel
}

type BusinessValue

type BusinessValue struct {
	EnvId      uint32    `json:"envId" gorm:"column:env_id"`
	BusinessId uint32    `json:"businessId" gorm:"column:business_id"`
	Value      string    `json:"value" gorm:"column:value"`
	Business   *Business `json:"business"`
	types.BaseModel
}

func (*BusinessValue) MarshalValue

func (bv *BusinessValue) MarshalValue(tp string) (string, error)

type Configure

type Configure struct {
	types.BaseModel
	ServerId    uint32  `json:"serverId" gorm:"server_id"`
	EnvId       uint32  `json:"envId" gorm:"env_id"`
	Content     string  `json:"content" gorm:"content"`
	Version     string  `json:"version" gorm:"version"`
	Format      string  `json:"format" gorm:"format"`
	Description *string `json:"description" gorm:"description"`
}

type Env

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

type Resource

type Resource struct {
	Keyword         string            `json:"keyword" gorm:"column:keyword"`
	Fields          string            `json:"fields" gorm:"column:fields"`
	Tag             string            `json:"tag" gorm:"column:tag"`
	Private         *bool             `json:"private" gorm:"column:private"`
	Description     *string           `json:"description" gorm:"column:description"`
	Servers         []*Server         `json:"servers" gorm:"many2many:resource_server"`
	ResourceServers []*ResourceServer `json:"resourceServers"`
	types.BaseModel
}

type ResourceServer

type ResourceServer struct {
	ServerId   uint32 `json:"serverId"  gorm:"column:server_id"`
	ResourceId uint32 `json:"resourceId"  gorm:"column:resource_id"`
}

type ResourceValue

type ResourceValue struct {
	EnvId      uint32    `json:"envId" gorm:"column:env_id"`
	ResourceId uint32    `json:"resourceId" gorm:"column:resource_id"`
	Value      string    `json:"value" gorm:"column:value"`
	Resource   *Resource `json:"resource"`
	types.BaseModel
}

type Server

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

type Template

type Template struct {
	types.BaseModel
	ServerId    uint32 `json:"serverId" gorm:"column:server_id"`
	Content     string `json:"content" gorm:"column:content"`
	Version     string `json:"version" gorm:"column:version"`
	IsUse       bool   `json:"isUse" gorm:"column:is_use"`
	Format      string `json:"format" gorm:"column:format"`
	Description string `json:"description" gorm:"column:description"`
	Compare     string `json:"compare" gorm:"column:compare"`
}

Jump to

Keyboard shortcuts

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