taskHostModel

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskHost

type TaskHost struct {
	Id        int    `json:"id" gorm:"type:int(20); primary_key; auto_increment; not null"`
	TaskId    int    `json:"taskId" gorm:"type:int(20); not null; index:IDX_task_host_task_id"`
	HostId    int    `json:"hostId" gorm:"type:int(20); not null; index:IDX_task_host_host_id"`
	HostName  string `json:"hostName" gorm:"-"`
	HostPort  int    `json:"hostPort" gorm:"-"`
	HostAlias string `json:"hostAlias" gorm:"-"`
}

func (*TaskHost) Delete

func (taskHost *TaskHost) Delete(taskId int)

删除

func (*TaskHost) GetHostIdsByTaskId

func (taskHost *TaskHost) GetHostIdsByTaskId(taskId int) []TaskHost

func (*TaskHost) GetTaskIdsByHostId

func (taskHost *TaskHost) GetTaskIdsByHostId(hostId int) ([]interface{}, error)

func (*TaskHost) Save

func (taskHost *TaskHost) Save(taskId int, hostIds string)

新增

Jump to

Keyboard shortcuts

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