form

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 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 GenerateParams

type GenerateParams struct {
	Service string            `json:"service"`
	Repo    string            `json:"repo" binding:"required"`
	Params  map[string]string `json:"params"`
}

type GithubCreateReq

type GithubCreateReq struct {
	//github密码或者token
	Password string `json:"password" binding:"required"`
}

type GithubGetResp

type GithubGetResp struct {
	//github邮箱
	Email string `json:"email" bson:"email"`
	//已配置
	Configured bool `json:"configured" bson:"configured"`
	//创建时间
	CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
	//更新时间
	UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}

type Pagination

type Pagination struct {
	Page     int64 `form:"page" query:"page"`
	PageSize int64 `form:"pageSize" query:"pageSize"`
}

type TemplateGenerateReq

type TemplateGenerateReq struct {
	Template TemplateParams `json:"template"`
	Generate GenerateParams `json:"generate"`
}

type TemplateGenerateResp

type TemplateGenerateResp struct {
	Repo   string `json:"repo"`
	Branch string `json:"branch"`
}

type TemplateGetBranchesReq

type TemplateGetBranchesReq struct {
	Source string `query:"source" form:"source" binding:"required"`
}

type TemplateGetBranchesResp

type TemplateGetBranchesResp struct {
	Branches []string `json:"branches"`
}

type TemplateGetParamsReq

type TemplateGetParamsReq struct {
	Source string `query:"source" form:"source" binding:"required"`
	Branch string `query:"branch" form:"branch"`
	Path   string `query:"path" form:"path"`
}

type TemplateGetParamsResp

type TemplateGetParamsResp struct {
	Params []TemplateParam `json:"params"`
}

type TemplateGetPathReq

type TemplateGetPathReq struct {
	Source string `query:"source" form:"source" binding:"required"`
	Branch string `query:"branch" form:"branch"`
}

type TemplateGetPathResp

type TemplateGetPathResp struct {
	Path []string `json:"path"`
}

type TemplateParam

type TemplateParam struct {
	Name string `json:"name"`
	Tip  string `json:"tip"`
}

type TemplateParams

type TemplateParams struct {
	Source string `json:"source" binding:"required"`
	Branch string `json:"branch"`
	Path   string `json:"path"`
}

Jump to

Keyboard shortcuts

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