Documentation ¶
Overview ¶
+gengo:operator:register=R +gengo:operator:tag=org
Package org GENERATED BY gengo:enum DON'T EDIT THIS FILE
Package org GENERATED BY gengo:operator DON'T EDIT THIS FILE
Package org GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- type Cookie
- type CreateOrg
- type DataList
- type DeleteOrg
- type Detail
- type ErrNotFound
- type GetOrg
- type Info
- type ListOrg
- type ListOrgOld
- type Type
- func (Type) EnumValues() []any
- func (v Type) Label() string
- func (v Type) MarshalText() ([]byte, error)
- func (Type) RuntimeDoc(names ...string) ([]string, bool)
- func (v *Type) Scan(src any) error
- func (v Type) String() string
- func (v *Type) UnmarshalText(data []byte) error
- func (v Type) Value() (database_sql_driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidType = github_com_pkg_errors.New("invalid Type")
View Source
var R = courier.NewRouter()
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct { courierhttp.MethodPost `path:"/cookie-ping-pong"` Token string `name:"token,omitempty" in:"cookie"` }
type CreateOrg ¶
type CreateOrg struct { courierhttp.MethodPost `path:"/orgs"` Info `in:"body"` }
创建组织
func (*CreateOrg) ResponseContent ¶
type DataList ¶
type DeleteOrg ¶
type DeleteOrg struct { courierhttp.MethodDelete `path:"/orgs/{orgName}"` OrgName string `name:"orgName" in:"path" ` }
删除组织
func (*DeleteOrg) ResponseContent ¶
type ErrNotFound ¶
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
func (ErrNotFound) RuntimeDoc ¶
func (v ErrNotFound) RuntimeDoc(names ...string) ([]string, bool)
type GetOrg ¶
type GetOrg struct { courierhttp.MethodGet `path:"/:orgName"` OrgName string `name:"orgName" in:"path" ` }
查询组织信息
func (GetOrg) MiddleOperators ¶
func (GetOrg) MiddleOperators() courier.MiddleOperators
func (*GetOrg) ResponseContent ¶
func (*GetOrg) ResponseErrors ¶
type Info ¶
type Info struct { // 组织名称 Name string `json:"name" validate:"@string[0,5]"` // 组织类型 Type Type `json:"type,omitempty"` }
组织详情
type ListOrg ¶
type ListOrg struct {
courierhttp.MethodGet `path:"/orgs"`
}
拉取组织列表
func (*ListOrg) ResponseContent ¶
type ListOrgOld ¶
type ListOrgOld struct {
courierhttp.MethodGet `path:"/org"`
}
拉取组织列表
func (*ListOrgOld) ResponseStatusCode ¶
func (*ListOrgOld) ResponseStatusCode() int
func (ListOrgOld) RuntimeDoc ¶
func (v ListOrgOld) RuntimeDoc(names ...string) ([]string, bool)
type Type ¶
type Type int
+gengo:enum
func ParseTypeFromString ¶
func ParseTypeLabelString ¶
func (Type) EnumValues ¶
func (Type) MarshalText ¶
func (*Type) UnmarshalText ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.