forms

package
v0.0.0-...-41ad4b5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIActionForm

type APIActionForm struct {
	Resource    string `validate:"required,uri" json:"resource"`
	Verb        string `validate:"required" json:"verb"`
	Description string `json:"description"`
}

type APIKey

type APIKey struct {
	Name        string  `validate:"required" json:"name"`
	ExpireIn    int64   `validate:"required" json:"expireIn"`
	RoleIds     []int64 `validate:"required" json:"roleIds"`
	Description string  `json:"description"`
}

type APIRoleForm

type APIRoleForm struct {
	Name        string `validate:"required" json:"Name"`
	Description string `json:"description"`
}

type APIRoleRelGrantGroup

type APIRoleRelGrantGroup struct {
	GroupId int64 `json:"groupId"`
}

type APIRoleRelGrantUser

type APIRoleRelGrantUser struct {
	UserId int64 `json:"userId"`
}

type APIRoleResourceForm

type APIRoleResourceForm struct {
	ResourceId int64 `validate:"required" json:"resourceId"`
}

type AzForm

type AzForm struct {
	Name     string `validate:"required" json:"name"`
	CnName   string `json:"cnName"`
	Region   string `validate:"required" json:"region"`
	Province string `validate:"required" json:"province"`
	Type     int64  `validate:"required" json:"type"`
	Status   int64  `validate:"required" json:"status"`
}

type CreateDrawLots

type CreateDrawLots struct {
	UserIds       string `validate:"required" json:"userIds"`
	DutyType      string `validate:"required" json:"dutyType"`
	EffectiveTime string `validate:"required" json:"effectiveTime"`
}

type CreateGrantGroupPermissionsForm

type CreateGrantGroupPermissionsForm struct {
	GroupId int64 `validate:"required" json:"groupId"`
	models.PermissionsAction
}

type CreateGrantUserPermissionsForm

type CreateGrantUserPermissionsForm struct {
	UserId int64 `validate:"required" json:"userId"`
	models.PermissionsAction
}

type CreateMenuForm

type CreateMenuForm struct {
	Name     string `validate:"required" json:"name"`
	Key      string `validate:"required" json:"key"`
	ParentId int64  `json:"parentId"`
}

type GroupForm

type GroupForm struct {
	Name        string `validate:"required" json:"name"`
	Email       string `validate:"required" json:"email"`
	CnName      string `validate:"required" json:"cnName"`
	Description string `json:"description"`
}

type IdcAzMultiDeleteForm

type IdcAzMultiDeleteForm struct {
	Ids []int64 `validate:"required,gt=0,dive,required" json:"ids"`
}

type IdcCreateForm

type IdcCreateForm struct {
	Name        string `validate:"required" json:"name"`
	CnName      string `validate:"required" json:"cnName"`
	Status      int64  `validate:"required" json:"status"`
	PhysicsAzId int64  `validate:"required" json:"physicsAzId"`
	VirtualAzId int64  `validate:"required" json:"virtualAzId"`
	Address     string `validate:"required" json:"address"`
	Region      string `validate:"required" json:"region"`
	City        string `validate:"required" json:"city"`
	CabinetNum  int64  `validate:"required" json:"cabinetNum"`
	IdcPhone    string `json:"idcPhone"`
	IdcMail     string `json:"idcMail"`
	Comment     string `json:"comment"`
}

type IdcFactoryCreateForm

type IdcFactoryCreateForm struct {
	Name        string `validate:"required" json:"name"`
	ModeName    string `validate:"required" json:"modeName"`
	EnName      string `validate:"required" json:"enName"`
	CnName      string `validate:"required" json:"cnName"`
	Description string `json:"description"`
}

type IdcProviderCreateForm

type IdcProviderCreateForm struct {
	Name  string `validate:"required" json:"name"`
	Alias string `validate:"required" json:"alias"`
}

type IdcRackCreateForm

type IdcRackCreateForm struct {
	Name       string `validate:"required" json:"name"`
	Row        string `validate:"required" json:"row"`
	Col        string `validate:"required" json:"col"`
	Group      string `validate:"required" json:"group"`
	UNum       int64  `validate:"required" json:"uNum"`
	RatedPower int64  `validate:"required" json:"ratedPower"`
	NetUNum    int64  `validate:"required" json:"netUNum"`
	Current    int64  `validate:"required" json:"current"`
	IdcRoomId  int64  `validate:"required"  json:"idcRoomId"`
	Status     int64  `validate:"required" json:"status"`
}

type IdcRackSlotCreateForm

type IdcRackSlotCreateForm struct {
	Slot      int64 `validate:"required" json:"slot"`
	Status    int64 `validate:"required" json:"status"`
	IdcRackId int64 `validate:"required" json:"idcRackId"`
	Type      int64 `validate:"required" json:"type"`
	UNum      int64 `validate:"required" json:"uNum"`
	Port      int64 `validate:"required" json:"port"`
}

type IdcRackSlotUpdateForm

type IdcRackSlotUpdateForm struct {
	IdcRackId int64 `validate:"required" json:"idcRackId"`
	Type      int64 `validate:"required" json:"type"`
	UNum      int64 `validate:"required" json:"uNum"`
	Port      int64 `validate:"required" json:"port"`
	Status    int64 `validate:"required" json:"status"`
	Slot      int64 `validate:"required" json:"slot"`
}

type IdcRoomCreateForm

type IdcRoomCreateForm struct {
	RoomName    string `validate:"required" json:"roomName"`
	IdcId       int64  `validate:"required" json:"idcId"`
	Status      int64  `validate:"required" json:"status"`
	PduStandard string `validate:"required" json:"pduStandard"`
	PowerMode   string `validate:"required" json:"powerMode"`
	RackSize    string `validate:"required" json:"rackSize"`
	BearerType  string `validate:"required" json:"bearerType"`
	BearWeight  string `validate:"required" json:"bearWeight"`
}

type IdcRoomUpdateForm

type IdcRoomUpdateForm struct {
	IdcId       int64  `validate:"required" json:"idcId"`
	Status      int64  `validate:"required" json:"status"`
	PduStandard string `validate:"required" json:"pduStandard"`
	PowerMode   string `validate:"required" json:"powerMode"`
	RackSize    string `validate:"required" json:"rackSize"`
	BearerType  string `validate:"required" json:"bearerType"`
	BearWeight  string `validate:"required" json:"bearWeight"`
}

type IdcSuitCreateForm

type IdcSuitCreateForm struct {
	Name    string `validate:"required" json:"name"`
	Season  string `validate:"required" json:"season"`
	Type    string `validate:"required" json:"type"`
	Cpu     string `validate:"required" json:"cpu"`
	Memory  string `validate:"required" json:"memory"`
	Storage string `validate:"required" json:"storage"`
	Gpu     string `json:"gpu"`
	Raid    string `json:"raid"`
	Psu     string `json:"psu"`
	Nic     string `json:"nic"`
}

type IdcSuitNameCreateForm

type IdcSuitNameCreateForm struct {
	Name string `validate:"required" json:"name"`
}

type IdcUpdateForm

type IdcUpdateForm struct {
	CnName      string `validate:"required" json:"cnName"`
	Status      int64  `validate:"required" json:"status"`
	PhysicsAzId int64  `validate:"required" json:"physicsAzId"`
	VirtualAzId int64  `validate:"required" json:"virtualAzId"`
	Address     string `validate:"required" json:"address"`
	Region      string `validate:"required" json:"region"`
	City        string `validate:"required" json:"city"`
	CabinetNum  int64  `validate:"required" json:"cabinetNum"`
	IdcPhone    string `json:"idcPhone"`
	IdcMail     string `json:"idcMail"`
	Comment     string `json:"comment"`
}

type IpRangeUpdate

type IpRangeUpdate struct {
	Cidr        string `validate:"required" json:"cidr"`
	Env         int64  `validate:"required" json:"env"`
	Status      int64  `validate:"required" json:"status"`
	Operator    int64  `validate:"required" json:"operator"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	Description string `json:"description"`
	Type        int64  `validate:"required" json:"type"`
	Gateway     string `validate:"required" json:"gateway"`
}
type MenuRoleCreateForm struct {
	Name        string `validate:"required" json:"name"`
	Description string `json:"description"`
}
type MenuRoleGrantGroup struct {
	GroupId int64 `json:"groupId"`
}
type MenuRoleGrantUser struct {
	UserId int64 `json:"userId"`
}
type MenuRoleResource struct {
	MenuId int64 `json:"menuId"`
}

type NetIpCreate

type NetIpCreate struct {
	IpRangeId   int64         `validate:"required" json:"ipRangeId"`
	Ip          string        `validate:"required" json:"ip"`
	Netmask     string        `validate:"required" json:"netmask"`
	Gateway     string        `validate:"required" json:"gateway"`
	Type        int64         `validate:"required" json:"type"`
	Version     int64         `validate:"required" json:"version"`
	Env         int64         `validate:"required" json:"env"`
	Status      int64         `validate:"required" json:"status"`
	Operator    int64         `validate:"required" json:"operator"`
	Description string        `json:"description"`
	RelResource []RelResource `extra:"read_only=true" json:"relResource"`
}

type NetIpRangeCreate

type NetIpRangeCreate struct {
	Cidr        string `validate:"required" json:"cidr"`
	Env         int64  `validate:"required" json:"env"`
	Version     int64  `validate:"required" json:"version"`
	Status      int64  `validate:"required" json:"status"`
	Operator    int64  `validate:"required" json:"operator"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	Description string `json:"description"`
	Gateway     string `validate:"required" json:"gateway"`
	Type        int64  `validate:"required" json:"type"`
}

type NetIpUpdate

type NetIpUpdate struct {
	Gateway     string        `validate:"required" json:"gateway"`
	Type        int64         `validate:"required" json:"type"`
	Env         int64         `validate:"required" json:"env"`
	Status      int64         `validate:"required" json:"status"`
	Description string        `json:"description"`
	Operator    int64         `validate:"required" json:"operator"`
	RelResource []RelResource `extra:"read_only=true" json:"relResource"`
}

type NetRouterCreate

type NetRouterCreate struct {
	Name        string `validate:"required" json:"name"`
	IpNetId     int64  `validate:"required"  json:"ipNetId"`
	Sn          string `validate:"required" json:"sn"`
	Status      int64  `validate:"required" json:"status"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	FactoryId   int64  `validate:"required" json:"factoryId"`
	RackSlotId  int64  `validate:"required" json:"rackSlotId"`
	Username    string `validate:"required" json:"username"`
	Password    string `validate:"required" json:"password"`
	Description string `json:"description"`
}

type NetRouterUpdate

type NetRouterUpdate struct {
	Name        string `validate:"required" json:"name"`
	IpNetId     int64  `validate:"required"  json:"ipNetId"`
	Sn          string `validate:"required" json:"sn"`
	Status      int64  `validate:"required" json:"status"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	FactoryId   int64  `validate:"required" json:"factoryId"`
	RackSlotId  int64  `validate:"required" json:"rackSlotId"`
	Username    string `validate:"required" json:"username"`
	Password    string `validate:"required" json:"password"`
	Description string `json:"description"`
}

type NetSwitchCreate

type NetSwitchCreate struct {
	IpNetId     int64  `validate:"required"  json:"ipNetId"`
	Sn          string `validate:"required" json:"sn"`
	Status      int64  `validate:"required" json:"status"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	FactoryId   int64  `validate:"required" json:"factoryId"`
	RackSlotId  int64  `validate:"required" json:"rackSlotId"`
	MutualRelIp string `validate:"required" json:"mutualRelIp"`
	UpRelPort   string `validate:"required" json:"upRelPort"`
	UpIpRelPort string `validate:"required" json:"upIpRelPort"`
	Type        int64  `validate:"required" json:"type"`
	Username    string `validate:"required" json:"username"`
	Password    string `validate:"required" json:"password"`
	Name        string `validate:"required" json:"name"`
	Description string `json:"description"`
}

type NetSwitchUpdate

type NetSwitchUpdate struct {
	Name        string `validate:"required" json:"name"`
	IpNetId     int64  `validate:"required"  json:"ipNetId"`
	Sn          string `validate:"required" json:"sn"`
	Status      int64  `validate:"required" json:"status"`
	NodeId      int64  `validate:"required" json:"nodeId"`
	FactoryId   int64  `validate:"required" json:"factoryId"`
	RackSlotId  int64  `validate:"required" json:"rackSlotId"`
	MutualRelIp string `validate:"required" json:"mutualRelIp"`
	UpRelPort   string `validate:"required" json:"upRelPort"`
	UpIpRelPort string `validate:"required" json:"upIpRelPort"`
	Type        int64  `validate:"required" json:"type"`
	Username    string `validate:"required" json:"username"`
	Password    string `validate:"required" json:"password"`
	Description string `json:"description"`
}

type NodeCreateForm

type NodeCreateForm struct {
	Name         string  `validate:"required" json:"name"`
	CnName       string  `validate:"required" json:"cnName"`
	Operator     int64   `validate:"required,gte=0,lte=4" json:"operator"`
	Bandwidth    string  `validate:"required" json:"bandwidth"`
	Region       string  `validate:"required" json:"region"`
	Province     string  `validate:"required" json:"province"`
	Status       int64   `validate:"required,gte=0,lte=8" json:"status"`
	Attribute    int64   `validate:"required,gte=0,lte=4" json:"attribute"`
	Grade        int64   `validate:"required,gte=0,lte=3" json:"grade"`
	Comment      string  `json:"comment"`
	Contract     int64   `validate:"required,gte=0,lte=2" json:"contract"`
	ProductLines []int64 `extra:"read_only=true" json:"productLines"`
}

type NodeMultiDeleteForm

type NodeMultiDeleteForm struct {
	Ids []int64 `validate:"required,gt=0,dive,required" json:"ids"`
}

type NodeStatusForm

type NodeStatusForm struct {
	Status int64 `validate:"required,gte=0,lte=9" json:"status"`
}

type NodeUpdateForm

type NodeUpdateForm struct {
	Operator     int64   `validate:"required,gte=0,lte=4" json:"operator"`
	Bandwidth    string  `validate:"required" json:"bandwidth"`
	Region       string  `validate:"required" json:"region"`
	Province     string  `validate:"required" json:"province"`
	Status       int64   `validate:"required,gte=0,lte=9" json:"status"`
	Attribute    int64   `validate:"required,gte=0,lte=4" json:"attribute"`
	Grade        int64   `validate:"required,gte=0,lte=3" json:"grade"`
	Comment      string  `json:"comment"`
	Contract     int64   `validate:"required,gte=0,lte=2" json:"contract"`
	ProductLines []int64 `extra:"read_only=true" json:"productLines"`
}

type OnCallExchange

type OnCallExchange struct {
	CurrentUser string `validate:"required" json:"currentUser"`
	HistoryUser string `validate:"required" json:"historyUser"`
	Datetime    string `validate:"required" json:"datetime"`
}

type RelResource

type RelResource struct {
	ResourceId   int64 `json:"resourceId"`
	ResourceType int64 `json:"resourceType"`
}

type ServerCreateForm

type ServerCreateForm struct {
	Sn            string   `validate:"required" json:"sn"`
	Hostname      string   `validate:"required" json:"hostname"`
	Type          int      `validate:"required,gte=1,lte=3" json:"type"`
	SuitId        int64    `validate:"required" json:"suitId"`
	PowerInfo     string   `validate:"required" json:"powerInfo"`
	PowerCost     string   `validate:"required" json:"powerCost"`
	Role          int      `validate:"required,gte=1,lte=4" json:"role"`
	Operator      int      `validate:"required,gte=1,lte=4" json:"operator"`
	ProviderId    int64    `validate:"required" json:"providerId"`
	FactoryId     int64    `validate:"required" json:"factoryId"`
	NodeId        int64    `validate:"required" json:"nodeId"`
	IdcRackSlotId int64    `validate:"required" json:"idcRackSlotId"`
	Status        int64    `validate:"required" json:"status"`
	AppEnv        string   `validate:"required" json:"appEnv"`
	AppEnvDesc    string   `validate:"required" json:"appEnvDesc"`
	SystemType    string   `validate:"required" json:"systemType"`
	SystemVersion string   `validate:"required" json:"systemVersion"`
	SystemArch    string   `validate:"required" json:"systemArch"`
	BelongTo      string   `validate:"required" json:"belongTo"`
	BelongToDesc  string   `json:"belongToDesc"`
	ArrivalTime   string   `validate:"required" json:"arrivalTime"`
	OverdueTime   string   `validate:"required" json:"overdueTime"`
	PrivNetIp     string   `validate:"required" json:"privNetIp"`
	PrivNetMask   string   `validate:"required" json:"privNetMask"`
	PrivNetGw     string   `validate:"required" json:"privNetGw"`
	PubNetIp      string   `validate:"required" json:"pubNetIp"`
	PubNetMask    string   `validate:"required" json:"pubNetMask"`
	PubNetGw      string   `validate:"required" json:"pubNetGw"`
	MgmtPortIp    string   `validate:"required" json:"mgmtPortIp"`
	MgmtPortMask  string   `validate:"required" json:"mgmtPortMask"`
	MgmtPortGw    string   `validate:"required" json:"mgmtPortGw"`
	Comment       string   `validate:"required" json:"comment"`
	ProductLines  []int64  `extra:"read_only=true" json:"productLines"`
	Tags          []string `extra:"read_only=true" json:"tags"`
}

type ServerTreeMigrate

type ServerTreeMigrate struct {
	SrcTreeId int64   `validate:"required" json:"srcTreeId"`
	TargetIds []int64 `validate:"required" json:"targetIds"`
	ServerIds []int64 `validate:"required" json:"serverIds"`
}

type ServerUpdateForm

type ServerUpdateForm struct {
	Hostname      string   `validate:"required" json:"hostname"`
	Type          int      `validate:"required,gte=1,lte=3" json:"type"`
	SuitId        int64    `validate:"required" json:"suitId"`
	PowerInfo     string   `validate:"required" json:"powerInfo"`
	PowerCost     string   `validate:"required" json:"powerCost"`
	Role          int      `validate:"required,gte=1,lte=4" json:"role"`
	Operator      int      `validate:"required,gte=1,lte=4" json:"operator"`
	ProviderId    int64    `validate:"required" json:"providerId"`
	FactoryId     int64    `validate:"required" json:"factoryId"`
	NodeId        int64    `validate:"required" json:"nodeId"`
	IdcRackSlotId int64    `validate:"required" json:"idcRackSlotId"`
	Status        int64    `validate:"required" json:"status"`
	AppEnv        string   `validate:"required" json:"appEnv"`
	AppEnvDesc    string   `validate:"required" json:"appEnvDesc"`
	SystemType    string   `validate:"required" json:"systemType"`
	SystemVersion string   `validate:"required" json:"systemVersion"`
	SystemArch    string   `validate:"required" json:"systemArch"`
	BelongTo      string   `validate:"required" json:"belongTo"`
	BelongToDesc  string   `json:"belongToDesc"`
	OverdueTime   string   `validate:"required" json:"overdueTime"`
	PrivNetIp     string   `validate:"required" json:"privNetIp"`
	PrivNetMask   string   `validate:"required" json:"privNetMask"`
	PrivNetGw     string   `validate:"required" json:"privNetGw"`
	PubNetIp      string   `validate:"required" json:"pubNetIp"`
	PubNetMask    string   `validate:"required" json:"pubNetMask"`
	PubNetGw      string   `validate:"required" json:"pubNetGw"`
	MgmtPortIp    string   `validate:"required" json:"mgmtPortIp"`
	MgmtPortMask  string   `validate:"required" json:"mgmtPortMask"`
	MgmtPortGw    string   `validate:"required" json:"mgmtPortGw"`
	Comment       string   `validate:"required" json:"comment"`
	ProductLines  []int64  `extra:"read_only=true" json:"productLines"`
	Tags          []string `extra:"read_only=true" json:"tags"`
}

type TicketCategoryCreate

type TicketCategoryCreate struct {
	Name                    string `validate:"required" json:"name"`
	Icon                    string `validate:"required" json:"icon"`
	AllowedVisibilityGroups string `json:"allowedVisibilityGroups"`
	Description             string `json:"description"`
	ProductId               int64  `validate:"required" json:"productId"`
	SnRuleIdentifier        string `validate:"required,len=4" json:"snRuleIdentifier"`
	Webhook                 string `json:"webhook"`
	Layout                  string `json:"layout"`
}

type TicketCategoryUpdate

type TicketCategoryUpdate struct {
	Icon                    string `validate:"required" json:"icon"`
	AllowedVisibilityGroups string `json:"allowedVisibilityGroups"`
	Description             string `json:"description"`
	Webhook                 string `json:"webhook"`
	Layout                  string `json:"layout"`
}

type TicketComment

type TicketComment struct {
	Content      string `validate:"required" json:"content"`
	CurrentState string `validate:"required" json:"currentState"`
	UserId       int64  `validate:"required" json:"userId"`
	RecordId     int64  `validate:"required" json:"ticket_workflow_record_id"`
}

type TicketProductCreate

type TicketProductCreate struct {
	Name                    string `validate:"required" json:"name"`
	Icon                    string `validate:"required" json:"icon"`
	AllowedVisibilityGroups string `json:"allowedVisibilityGroups"`
	Description             string `json:"description"`
}

type TicketProductUpdate

type TicketProductUpdate struct {
	Icon                    string `validate:"required" json:"icon"`
	AllowedVisibilityGroups string `json:"allowedVisibilityGroups"`
	Description             string `json:"description"`
}

type TicketRecordApproval

type TicketRecordApproval struct {
	SrcId          int64  `validate:"required" json:"srcId"`
	TargetId       int64  `validate:"required" json:"targetId"`
	Suggestion     string `validate:"required" json:"suggestion"`
	Approver       string `validate:"required" json:"approver"`
	ButtonName     string `validate:"required" json:"buttonName"`
	ApproverStatus string `validate:"required" json:"approverStatus"`
	PreTime        string `json:"preTime"`
	CurTime        string `json:"CurTime"`
}

type TicketRecordForm

type TicketRecordForm struct {
	FieldType  int64  `validate:"required,gt=0" json:"fieldType"`
	FieldLabel string `validate:"required" json:"fieldLabel"`
	FieldKey   string `validate:"required" json:"fieldKey"`
	FieldValue string `validate:"required" json:"fieldValue"`
}

type TicketWebhook

type TicketWebhook struct {
	SN              string      `json:"sn"`
	CurrentNode     string      `json:"currentNode"`
	CurrentApprover string      `json:"currentApprover"`
	RelLink         string      `json:"relLink"`
	CategoryName    string      `json:"categoryName"`
	FormValues      interface{} `json:"formValues"`
}

type TicketWorkflowCategoryDocumentCreate

type TicketWorkflowCategoryDocumentCreate struct {
	Name        string `validate:"required" json:"name"`
	URL         string `validate:"required,http_url" json:"url"`
	CategoryId  int64  `validate:"required" json:"categoryId"`
	Description string `json:"description"`
}

type TicketWorkflowCategoryDocumentUpdate

type TicketWorkflowCategoryDocumentUpdate struct {
	Name        string `validate:"required" json:"name"`
	URL         string `validate:"required,http_url" json:"url"`
	Description string `json:"description"`
}

type TicketWorkflowCustomFormCreate

type TicketWorkflowCustomFormCreate struct {
	CategoryId   int64  `validate:"required" json:"categoryId"`
	FieldType    int64  `validate:"required,gte=1,lte=14" json:"fieldType"`
	FieldKey     string `validate:"required" json:"fieldKey"`
	FieldLabel   string `validate:"required" json:"fieldLabel"`
	Placeholder  string `validate:"required" json:"placeholder"`
	Required     int    `validate:"required" json:"required"`
	DefaultValue string `json:"defaultValue"`
	RemoteURL    string `json:"remoteURL"`
	FieldOptions string `json:"fieldOptions"`
	Priority     int64  `validate:"required" json:"priority"`
	Width        string `json:"width"`
	RowMargin    int64  `json:"rowMargin"`
}

type TicketWorkflowCustomFormUpdate

type TicketWorkflowCustomFormUpdate struct {
	Placeholder  string `validate:"required" json:"placeholder"`
	Required     int    `validate:"required" json:"required"`
	DefaultValue string `json:"defaultValue"`
	RemoteURL    string `json:"remoteURL"`
	FieldOptions string `json:"fieldOptions"`
	Priority     int64  `validate:"required" json:"priority"`
	Width        string `json:"width"`
	RowMargin    int64  `json:"rowMargin"`
}

type TicketWorkflowNodeStateCreate

type TicketWorkflowNodeStateCreate struct {
	StateName                string `validate:"required" json:"stateName"`
	Priority                 int64  `validate:"required" json:"priority"`
	CurrentFormFieldStateSet string `validate:"required,json" json:"currentFormFieldStateSet"`
	HiddenState              int64  `validate:"required,gte=1,lte=2" json:"hiddenState"`
	ParticipantType          int64  `validate:"required,gte=1,lte=4" json:"participantType"`
	Participant              string `validate:"required" json:"participant"`
	Webhook                  string `json:"webhook"`
	CategoryId               int64  `validate:"required" json:"categoryId"`
	ApprovalType             int64  `validate:"required,gte=1,lte=4" json:"approvalType"`
}

type TicketWorkflowNodeStateUpdate

type TicketWorkflowNodeStateUpdate struct {
	StateName                string `validate:"required" json:"stateName"`
	Priority                 int64  `validate:"required" json:"priority"`
	CurrentFormFieldStateSet string `validate:"required,json" json:"currentFormFieldStateSet"`
	HiddenState              int64  `validate:"required,gte=1,lte=2" json:"hiddenState"`
	ParticipantType          int64  `validate:"required,gte=1,lte=4" json:"participantType"`
	Participant              string `validate:"required" json:"participant"`
	Webhook                  string `json:"webhook"`
	ApprovalType             int64  `validate:"required,gte=1,lte=4" json:"approvalType"`
}

type TicketWorkflowNodeTransitionCreate

type TicketWorkflowNodeTransitionCreate struct {
	ButtonName             string `validate:"required" json:"buttonName"`
	ButtonType             string `validate:"required" json:"buttonType"`
	CurrentWorkflowStateId int64  `validate:"required,gt=0" json:"currentWorkflowStateId"`
	TargetWorkflowStateId  int64  `validate:"required,gt=0" json:"targetWorkflowStateId"`
	CategoryId             int64  `validate:"required" json:"categoryId"`
}

type TicketWorkflowNodeTransitionUpdate

type TicketWorkflowNodeTransitionUpdate struct {
	ButtonName             string `validate:"required" json:"buttonName"`
	ButtonType             string `validate:"required" json:"buttonType"`
	CurrentWorkflowStateId int64  `validate:"required,gt=0" json:"currentWorkflowStateId"`
	TargetWorkflowStateId  int64  `validate:"required,gt=0" json:"targetWorkflowStateId"`
}

type TicketWorkflowRecordCreate

type TicketWorkflowRecordCreate struct {
	Title       string `validate:"required" json:"title"`
	CategoryId  int64  `validate:"required" json:"categoryId"`
	Description string `validate:"required" json:"description"`
}

type TicketWorkflowRecordUpdate

type TicketWorkflowRecordUpdate struct {
	Description string `validate:"required" json:"description"`
}

type TicketWorkflowUrge

type TicketWorkflowUrge struct {
	NodeStateId int64  `validate:"required" json:"nodeStateId"`
	RecordSn    string `validate:"required" json:"recordSn"`
}

type TreeCreate

type TreeCreate struct {
	FullIdPath   string `validate:"required" json:"fullIdPath"`
	FullNamePath string `validate:"required" json:"fullNamePath"`
	Name         string `validate:"required" json:"name"`
	ParentId     int64  `validate:"required" json:"parentId"`
	Level        int64  `validate:"required" json:"level"`
}

type TreeDelete

type TreeDelete struct {
	FullIdPath string `validate:"required" json:"fullIdPath"`
	Id         int64  `validate:"required" json:"id"`
}

type TreeMigrate

type TreeMigrate struct {
	SrcId  int64 `json:"srcId"`
	DestId int64 `json:"destId"`
}

type TreeUpdate

type TreeUpdate struct {
	FullNamePath string `validate:"required" json:"fullNamePath"`
	Name         string `validate:"required" json:"name"`
}

type UpdateDrawLots

type UpdateDrawLots struct {
	UserIds       string `validate:"required" json:"userIds"`
	DutyType      string `validate:"required" json:"dutyType"`
	EffectiveTime string `validate:"required" json:"effectiveTime"`
}

type UpdateMenuForm

type UpdateMenuForm struct {
	Name     string `validate:"required" json:"name"`
	Key      string `validate:"required" json:"key"`
	ParentId int64  `json:"parentId"`
}

type UserCreateForm

type UserCreateForm struct {
	Username string `validate:"required,gte=3" json:"username"`
	Name     string `validate:"required,gte=2" json:"name"`
	Password string `validate:"required,gte=6" json:"password"`
	Email    string `validate:"required,email" json:"email"`
	IsActive bool   `json:"isActive"`
	IsAdmin  bool   `json:"isAdmin"`
	GroupId  int64  `json:"groupId"`
}

type UserUpdateForm

type UserUpdateForm struct {
	Password string `validate:"required,gte=6" json:"password"`
	IsActive bool   `json:"isActive"`
	IsAdmin  bool   `json:"isAdmin"`
	GroupId  int64  `json:"groupId"`
}

Jump to

Keyboard shortcuts

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