models

package
v0.0.0-...-ac3b76c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchContainerLogsRequest

type BatchContainerLogsRequest struct {
	ID []string `json:"id"`
}

type ContainerCreateRequest

type ContainerCreateRequest struct {
	Image         string   `json:"image"`         // 指定要使用的镜像
	Cmd           []string `json:"cmd"`           // 指定容器启动时要执行的命令
	Hostname      string   `json:"hostname"`      // 主机名
	HostIP        string   `json:"hostIP"`        // 容器绑定IP
	LocalProt     string   `json:"localProt"`     // 容器绑定端口
	HostPort      string   `json:"hostPort"`      // 宿主机映射端口
	PolicyName    string   `json:"policyName"`    // 重启策略
	ContainerName string   `json:"containerName"` // 容器名称

}

type ContainerLogsRequest

type ContainerLogsRequest struct {
	ID string `json:"id"`
}

容器

type ContainerStopRequest

type ContainerStopRequest struct {
	Ids string `json:"ids"`
}

type ControlBy

type ControlBy struct {
	CreateBy uint32 `json:"create_by" gorm:"not null;index;default:0;comment:创建者: 填写用户ID"`
	UpdateBy uint32 `json:"update_by" gorm:"not null;index;default:0;comment:更新者: 填写用户ID"`
}

func (*ControlBy) SetCreateBy

func (e *ControlBy) SetCreateBy(createBy uint32)

SetCreateBy 设置创建人ID

func (*ControlBy) SetUpdateBy

func (e *ControlBy) SetUpdateBy(updateBy uint32)

SetUpdateBy 设置更新人ID

type EtcdRequest

type EtcdRequest struct {
	ID        int32  `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	Remark    string `json:"remark,omitempty"`
	Content   string `json:"content,omitempty"`
	IsSub     uint32 `json:"is_sub,omitempty"`
	SubUserID string `json:"sub_user_id,omitempty"`
}

type ImagesPullRequest

type ImagesPullRequest struct {
	Refstr string `json:"refstr"`
}

type LogSearchReqest

type LogSearchReqest struct {
	SearchRequest
	StartTime string `form:"start_time,omitempty"`
	EndTime   string `form:"end_time,omitempty"`
}

type LoginRequest

type LoginRequest struct {
	UserName string `json:"user_name"`
	PassWord string `json:"pass_word"`
}
type MenuRequest struct {
	MenuId     uint32 `json:"menu_id,omitempty"`
	MenuName   string `json:"menu_name,omitempty"`
	MenuTitle  string `json:"menu_title,omitempty"`
	MenuIcon   string `json:"menu_icon,omitempty"`
	MenuPath   string `json:"menu_path,omitempty"`
	PathGroup  string `json:"path_group,omitempty"`
	MenuType   string `json:"menu_type,omitempty"`
	MenuMethod string `json:"menu_method,omitempty"`
	Permission string `json:"permission,omitempty"`
	ParentId   uint32 `json:"parent_id,omitempty"`
	Component  string `json:"component,omitempty"`
	MenuSort   uint8  `json:"menu_sort,omitempty"`
	Visible    uint8  `json:"visible,omitempty"`
	IsFrame    uint8  `json:"is_frame,omitempty"`
	NoCache    uint8  `json:"no_cache,omitempty"`
}
type MenuRouterReqest struct {
	SearchKey string `form:"search_key,omitempty"`
}

type Model

type Model struct {
	Id uint32 `json:"id" gorm:"primaryKey;autoIncrement;comment:唯一编号"`
}

type ModelTime

type ModelTime struct {
	CreateTime uint32 `json:"create_time" gorm:"autoCreateTime;not null;index;default:0;comment:创建时间"`
	UpdateTime uint32 `json:"update_time" gorm:"autoUpdateTime;not null;index;default:0;comment:更新时间"`
}

type RoleMenuRequest

type RoleMenuRequest struct {
	RoleId  uint32 `json:"role_id"`
	MenuIds string `json:"menu_ids"`
}

type RoleRequest

type RoleRequest struct {
	RoleId     int    `json:"role_id,omitempty"`
	RoleName   string `json:"role_name,omitempty"`
	RoleRemark string `json:"role_remark,omitempty"`
	RoleKey    string `json:"role_key,omitempty"`
	RoleSort   uint8  `json:"role_sort,omitempty"`
	Status     uint8  `json:"status,omitempty"`
}

type SearchRequest

type SearchRequest struct {
	SearchKey string `form:"search_key,omitempty"`
	Page      int    `form:"page,omitempty"`
	PageSize  int    `form:"page_size,omitempty"`
}

type UserRoleRequest

type UserRoleRequest struct {
	UID    uint32 `json:"uid"`
	RoleId uint32 `json:"role_id"`
}

Jump to

Keyboard shortcuts

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