Documentation ¶
Index ¶
- type APIActionForm
- type APIKey
- type APIRoleForm
- type APIRoleRelGrantGroup
- type APIRoleRelGrantUser
- type APIRoleResourceForm
- type AzForm
- type CreateDrawLots
- type CreateGrantGroupPermissionsForm
- type CreateGrantUserPermissionsForm
- type CreateMenuForm
- type GroupForm
- type IdcAzMultiDeleteForm
- type IdcCreateForm
- type IdcFactoryCreateForm
- type IdcProviderCreateForm
- type IdcRackCreateForm
- type IdcRackSlotCreateForm
- type IdcRackSlotUpdateForm
- type IdcRoomCreateForm
- type IdcRoomUpdateForm
- type IdcSuitCreateForm
- type IdcSuitNameCreateForm
- type IdcUpdateForm
- type IpRangeUpdate
- type MenuRoleCreateForm
- type MenuRoleGrantGroup
- type MenuRoleGrantUser
- type MenuRoleResource
- type NetIpCreate
- type NetIpRangeCreate
- type NetIpUpdate
- type NetRouterCreate
- type NetRouterUpdate
- type NetSwitchCreate
- type NetSwitchUpdate
- type NodeCreateForm
- type NodeMultiDeleteForm
- type NodeStatusForm
- type NodeUpdateForm
- type OnCallExchange
- type RelResource
- type ServerCreateForm
- type ServerTreeMigrate
- type ServerUpdateForm
- type TicketCategoryCreate
- type TicketCategoryUpdate
- type TicketComment
- type TicketProductCreate
- type TicketProductUpdate
- type TicketRecordApproval
- type TicketRecordForm
- type TicketWebhook
- type TicketWorkflowCategoryDocumentCreate
- type TicketWorkflowCategoryDocumentUpdate
- type TicketWorkflowCustomFormCreate
- type TicketWorkflowCustomFormUpdate
- type TicketWorkflowNodeStateCreate
- type TicketWorkflowNodeStateUpdate
- type TicketWorkflowNodeTransitionCreate
- type TicketWorkflowNodeTransitionUpdate
- type TicketWorkflowRecordCreate
- type TicketWorkflowRecordUpdate
- type TicketWorkflowUrge
- type TreeCreate
- type TreeDelete
- type TreeMigrate
- type TreeUpdate
- type UpdateDrawLots
- type UpdateMenuForm
- type UserCreateForm
- type UserUpdateForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIActionForm ¶
type APIRoleForm ¶
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 CreateDrawLots ¶
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 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 IdcProviderCreateForm ¶
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 ¶
type MenuRoleGrantGroup ¶
type MenuRoleGrantGroup struct {
GroupId int64 `json:"groupId"`
}
type MenuRoleGrantUser ¶
type MenuRoleGrantUser struct {
UserId int64 `json:"userId"`
}
type MenuRoleResource ¶
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 RelResource ¶
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 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 TicketComment ¶
type TicketProductCreate ¶
type TicketProductUpdate ¶
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 TicketWebhook ¶
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 TicketWorkflowRecordUpdate ¶
type TicketWorkflowRecordUpdate struct {
Description string `validate:"required" json:"description"`
}
type TicketWorkflowUrge ¶
type TreeCreate ¶
type TreeDelete ¶
type TreeMigrate ¶
type TreeUpdate ¶
type UpdateDrawLots ¶
type UpdateMenuForm ¶
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"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.