request

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 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 AddTask

type AddTask struct {
	AgentName   string `json:"agent_name" binding:"required"`
	AgentUrl    string `json:"agent_url" binding:"required"`
	Workspace   string `json:"workspace" binding:"required"`
	Description string `json:"description"`
}

type AgentID

type AgentID struct {
	AgentID string `json:"agent_id" binding:"required"`
}

type AuthModel

type AuthModel struct {
	Email string    `json:"email" validate:"required"`
	Name  string    `json:"name" validate:"required"`
	Role  enum.Role `json:"role"`
}

type ConfigurationID

type ConfigurationID struct {
	ConfigurationID string `json:"configuration_id" form:"configuration_id"  binding:"required"`
}

type ConfigurationToken

type ConfigurationToken struct {
	ConfigurationToken string `json:"configuration_token" form:"configuration_token"  binding:"required"`
}

type CreateConfiguration

type CreateConfiguration struct {
	Subtask  string `json:"subtask" binding:"required"`
	Filename string `json:"filename" binding:"required"`
	Body     string `json:"body" binding:"required"`
}

type CreateSubtask

type CreateSubtask struct {
	TaskID      string          `json:"task_id" binding:"required"`
	Name        string          `json:"name" binding:"required"`
	AgentID     string          `json:"agent_id" binding:"required"`
	Branch      string          `json:"branch" binding:"required"`
	Action      enum.TaskAction `json:"action" binding:"required"`
	Instruction string          `json:"instruction" binding:"required"` // 指令
	Description string          `json:"description"`
}

type CreateTask

type CreateTask struct {
	Name        string `json:"name" form:"name" binding:"required"`
	Description string `json:"description" form:"description"`
}

type CreateUser

type CreateUser struct {
	Email    string `json:"email" form:"email" binding:"required"`
	Name     string `json:"name" form:"name" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

type ModifyConfiguration

type ModifyConfiguration struct {
	ConfigurationID string `json:"configuration_id" binding:"required"`
	Filename        string `json:"filename"`
	Body            string `json:"body"`
}

type Subtask

type Subtask struct {
	SubtaskID string `json:"subtask_id" form:"subtask_id" binding:"required"`
}

type Task

type Task struct {
	TaskID string `json:"task_id" form:"task_id" binding:"required"`
}

type TaskLogID

type TaskLogID struct {
	TaskID    string `json:"task_id" form:"task_id"`
	SubtaskID string `json:"subtask_id" form:"subtask_id"`
}

type TaskLogUpdate

type TaskLogUpdate struct {
	LogID      string          `json:"log_id"`
	TaskStatus enum.TaskStatus `json:"task_status"`
	TaskStage  enum.TaskStage  `json:"task_stage"`
	LogText    string          `json:"log_text"`
}

type UpdateSubtask

type UpdateSubtask struct {
	SubtaskID   string `json:"subtask_id" form:"subtask_id" binding:"required"`
	Instruction string `json:"instruction" binding:"required"` // 指令
	Description string `json:"description"`
}

type WebLogin

type WebLogin struct {
	Email    string `json:"email" form:"email" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

Jump to

Keyboard shortcuts

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