models

package
v0.0.0-...-1bb2421 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateTimeFormat       = "2006-01-02 15:04:05"
	SysTableIdConnector  = "__"
	UrlPrefix            = "/wecmdb"
	MultiRefType         = "multiRef"
	AutofillRuleType     = "autofillRule"
	ObjectInputType      = "object"
	TimeTriggerInputType = "timeTrigger"
	CountInputType       = "count"
	SumInputType         = "sum"
	AvgInputType         = "avg"
	PasswordInputType    = "password"
	AutofillSuggest      = "suggest#"
	SystemUser           = "system"
	AdminUser            = "SUPER_ADMIN"
	AdminRole            = "SUPER_ADMIN"
	SystemRole           = "SUB_SYSTEM"
	PlatformUser         = "SYS_PLATFORM"
	PasswordDisplay      = "****"
	RollbackAction       = "rollback"
	FilterTypeExpression = "expression"
	FilterTypeSelectList = "selectList"
)

Variables

View Source
var (
	Config            *GlobalConfig
	PluginRunningMode bool
	CoreToken         *token.CoreToken
	MenuApiGlobalList []*MenuApiMapObj
	ProcessFetchTabs  string
)
View Source
var BaseElementColumns = []string{"graph", "report_object ", "show_table", "display_expression", "node_group_name", "line_start_data", "line_end_data", "line_display_position", "graph_type", "graph_shape_data", "graph_shapes", "graph_config_data", "graph_configs", "graph_filter_data", "graph_filter_values", "editable", "seq_no", "order_data", "update_operation"}
View Source
var (
	CiStatusList = []string{"created", "notCreated", "dirty", "deleted"}
)
View Source
var (
	SEPERATOR = string([]byte{0x01})
)

Functions

func InitConfig

func InitConfig(configFile string) (errMessage string)

func ValidateNormalString

func ValidateNormalString(input string) bool

Types

type ActionFuncParam

type ActionFuncParam struct {
	CiType              string
	Attributes          []*SysCiTypeAttrTable
	ReferenceAttributes []*SysCiTypeAttrTable
	Transition          *SysStateTransitionQuery
	InputData           CiDataMapObj
	NowData             CiDataMapObj
	Operator            string
	Operation           string
	NowTime             string
	RefCiTypeMap        map[string]*SysCiTypeTable
	UpdateColumn        []string
	BareAction          string
	DeleteList          []string
	FromCore            bool
	MultiColumnDelMap   map[string][]string
}

type AttrAutofillSortList

type AttrAutofillSortList []*AttrAutofillSortObj

func (AttrAutofillSortList) Len

func (a AttrAutofillSortList) Len() int

func (AttrAutofillSortList) Less

func (a AttrAutofillSortList) Less(i, j int) bool

func (AttrAutofillSortList) Swap

func (a AttrAutofillSortList) Swap(i, j int)

type AttrAutofillSortObj

type AttrAutofillSortObj struct {
	AttrName string              `json:"attr_name"`
	Attr     *SysCiTypeAttrTable `json:"attr"`
	Dep      []string            `json:"type"`
	PValue   int                 `json:"value"`
	Link     []string            `json:"link"`
}

type AttrRefFilterLegalObj

type AttrRefFilterLegalObj struct {
	AttrName string
	GuidMap  map[string]bool
}

type AuthConfig

type AuthConfig struct {
	Enable           bool   `json:"enable"`
	PasswordSeed     string `json:"password_seed"`
	ExpireSec        int64  `json:"expire_sec"`
	FreshTokenExpire int64  `json:"fresh_token_expire"`
}

type AutoActiveHandleParam

type AutoActiveHandleParam struct {
	Data      []map[string]string
	CiType    string
	Operation string
	User      string
}

type AutofillChainCiColumn

type AutofillChainCiColumn struct {
	AttrId        string
	CiTypeId      string
	CiAttrName    string
	AutofillRule  string
	UsedColumn    []string
	UpdatedSubMap map[string][]string
	DeleteList    []string
}

type AutofillChainObj

type AutofillChainObj struct {
	Guid              string
	UpdateColumn      []string
	MultiColumnDelMap map[string][]string
}

type AutofillFilterObj

type AutofillFilterObj struct {
	Name     string      `json:"name"`
	Code     string      `json:"code"`
	Operator string      `json:"operator"`
	Type     string      `json:"type"`
	Value    interface{} `json:"value"`
	CiType   string      `json:"-"`
}

type AutofillObj

type AutofillObj struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type AutofillRuleList

type AutofillRuleList []*AutofillValueObj

Try to build sql to impl autofill

func (AutofillRuleList) BuildBaseSql

func (af AutofillRuleList) BuildBaseSql(prefix string) (sql, column string)

type AutofillValueAttrObj

type AutofillValueAttrObj struct {
	AttrId              string `json:"attrId"`
	IsReferedFromParent int    `json:"isReferedFromParent"`
}

type AutofillValueObj

type AutofillValueObj struct {
	CiTypeId string                `json:"ciTypeId"`
	ParentRs *AutofillValueAttrObj `json:"parentRs"`
	Filters  []*AutofillFilterObj  `json:"filters"`
}

type BaseKeyCodeCreateObj

type BaseKeyCodeCreateObj struct {
	CodeId      string `json:"codeId"`
	CatId       string `json:"catId"`
	Code        string `json:"code"`
	Value       string `json:"value"`
	Status      string `json:"status"`
	Description string `json:"codeDescription"`
}

type BaseKeyCodeSwapPositionParam

type BaseKeyCodeSwapPositionParam struct {
	CodeId      string `json:"codeId" binding:"required"`
	TargetIndex int    `json:"targetIndex"`
	Up          bool   `json:"up"`
}

type BuildAttrValueParam

type BuildAttrValueParam struct {
	IsSystem        bool
	NowTime         string
	AttributeConfig *SysCiTypeAttrTable
	InputData       CiDataMapObj
	Action          string
	FromCore        bool
	NowData         CiDataMapObj
}

type CiAttrSwapPositionParam

type CiAttrSwapPositionParam struct {
	CiAttrId    string `json:"ciTypeAttrId" binding:"required"`
	TargetIndex int    `json:"targetIndex"`
}

type CiDataActionQuery

type CiDataActionQuery struct {
	Title      []*CiDataActionQueryTitle `json:"title"`
	Data       []map[string]interface{}  `json:"data"`
	Selectable bool                      `json:"selectable"`
}

type CiDataActionQueryTitle

type CiDataActionQueryTitle struct {
	Id   string `json:"key"`
	Name string `json:"title"`
	Type string `json:"type"`
}

type CiDataCallbackParam

type CiDataCallbackParam struct {
	CiType        string `json:"ciType"`
	RowGuid       string `json:"rowGuid"`
	ProcessKey    string `json:"processKey"`
	ProcessName   string `json:"processName"`
	OperationUser string `json:"operationUser"`
	UserToken     string `json:"userToken"`
}

type CiDataColumnObj

type CiDataColumnObj struct {
	ColumnName  string
	ColumnValue interface{}
	ValueString string
}

type CiDataLegalGuidList

type CiDataLegalGuidList struct {
	Enable   bool
	GuidList []string
}

type CiDataMapObj

type CiDataMapObj map[string]string

type CiDataObjectErrOutput

type CiDataObjectErrOutput struct {
	Error   string `json:"error"`
	Content string `json:"content"`
}

type CiDataPermission

type CiDataPermission struct {
	CiType    string
	ConfigMap map[string]*RoleCiTypePermissionObj
	Insert    bool
	Delete    bool
	Update    bool
	Query     bool
	Execute   bool
}

type CiDataQueryRefAttrObj

type CiDataQueryRefAttrObj struct {
	Attribute       *SysCiTypeAttrTable
	GuidList        []string
	HistoryGuidList []*HistoryGuidObj
	RefObj          map[string]*CiDataRefDataObj
	MultiGuidList   []string
	MultiRefObj     map[string][]*CiDataRefDataObj
}

type CiDataRefDataObj

type CiDataRefDataObj struct {
	Guid        string `json:"guid"`
	KeyName     string `json:"key_name"`
	HistoryTime string `json:"-"`
}

type CiDataRefFilterObj

type CiDataRefFilterObj struct {
	Left     string               `json:"left"`
	Operator string               `json:"operator"`
	Right    CiDataRefFilterRight `json:"right"`
}

type CiDataRefFilterRight

type CiDataRefFilterRight struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type CiQueryColumnList

type CiQueryColumnList []*CiQueryColumnObj

func (CiQueryColumnList) GetNameList

func (c CiQueryColumnList) GetNameList() []string

func (CiQueryColumnList) Len

func (c CiQueryColumnList) Len() int

func (CiQueryColumnList) Less

func (c CiQueryColumnList) Less(i, j int) bool

func (CiQueryColumnList) Swap

func (c CiQueryColumnList) Swap(i, j int)

type CiQueryColumnObj

type CiQueryColumnObj struct {
	Name  string
	Index int
}

type CiSwapPositionParam

type CiSwapPositionParam struct {
	CiTypeId    string `json:"ciTypeId" binding:"required"`
	TargetIndex int    `json:"targetIndex"`
}

type CiTypePermissionObj

type CiTypePermissionObj struct {
	Guid       string `json:"guid" xorm:"guid"`
	RoleId     string `json:"roleId" xorm:"role_id"`
	CiType     string `json:"ciTypeId" xorm:"ci_type"`
	CiTypeName string `json:"ciTypeName" xorm:"ci_type_name"`
	Insert     string `json:"insert" xorm:"insert"`
	Delete     string `json:"delete" xorm:"delete"`
	Update     string `json:"update" xorm:"update"`
	Query      string `json:"query" xorm:"query"`
	Execution  string `json:"execute" xorm:"execute"`
}

type CiTypeQuery

type CiTypeQuery struct {
	CiTypeId       string   `json:"ciTypeId"`
	GroupBy        string   `json:"group-by"`
	Group          []string `json:"group"`
	Layer          []string `json:"layer"`
	WithAttributes string   `json:"with-attributes"`
	AttrInputType  []string `json:"attr-input-type"`
	Status         []string `json:"status"`
	AttrTypeStatus []string `json:"attr-type-status"`
	GroupData      []*CiTypeQueryGroupObj
	CiTypeListData []*CiTypeQueryCiObj
}

type CiTypeQueryCiObj

type CiTypeQueryCiObj struct {
	Id           string                `json:"ciTypeId" xorm:"id" binding:"required"`
	DisplayName  string                `json:"name" xorm:"display_name" binding:"required"`
	Description  string                `json:"description" xorm:"description"`
	Status       string                `json:"status" xorm:"status"`
	ImageFile    string                `json:"imageFile" xorm:"image_file"`
	CiGroup      string                `json:"ciGroup" xorm:"ci_group"`
	CiLayer      string                `json:"ciLayer" xorm:"ci_layer"`
	CiTemplate   string                `json:"ciTemplate" xorm:"ci_template"`
	StateMachine string                `json:"stateMachine" xorm:"state_machine"`
	SeqNo        string                `json:"seqNo" xorm:"seq_no"`
	Attributes   []*SysCiTypeAttrTable `json:"attributes"`
}

type CiTypeQueryGroupObj

type CiTypeQueryGroupObj struct {
	Id          string              `json:"codeId" xorm:"id"`
	CatGuid     string              `json:"catId" xorm:"cat_guid"`
	Code        string              `json:"code" xorm:"code"`
	Value       string              `json:"value" xorm:"value"`
	Description string              `json:"codeDescription" xorm:"description"`
	SeqNo       int                 `json:"seqNo" xorm:"seq_no"`
	Status      string              `json:"status" xorm:"status"`
	CiTypes     []*CiTypeQueryCiObj `json:"ciTypes"`
}

type CiTypeReferenceObj

type CiTypeReferenceObj struct {
	Id             string `json:"ciTypeAttrId" xorm:"id"`
	CiType         string `json:"ciTypeId" xorm:"ci_type"`
	CiTypeName     string `json:"ciTypeName" xorm:"ci_type_name"`
	Name           string `json:"propertyName" xorm:"name" binding:"required"`
	DisplayNameTmp string `json:"displayName" xorm:"-"`
	DisplayName    string `json:"name" xorm:"display_name" binding:"required"`
	Description    string `json:"description" xorm:"description"`
	Status         string `json:"status" xorm:"status"`
	InputType      string `json:"inputType" xorm:"input_type"`
	RefCiType      string `json:"referenceId" xorm:"ref_ci_type"`
	RefName        string `json:"referenceName" xorm:"ref_name"`
	RefType        string `json:"referenceType" xorm:"ref_type"`
}

type CodeProcessQueryObj

type CodeProcessQueryObj struct {
	ExcludeMode     string `json:"excludeMode"`
	ProcDefId       string `json:"procDefId"`
	ProcDefKey      string `json:"procDefKey"`
	ProcDefName     string `json:"procDefName"`
	ProcDefVersion  string `json:"procDefVersion"`
	RootEntity      string `json:"rootEntity"`
	Status          string `json:"status"`
	CreatedTime     string `json:"createdTime"`
	CreatedUnixTime int64  `json:"-"`
	Tags            string `json:"tags"`
}

type ConditionListQueryObj

type ConditionListQueryObj struct {
	Guid                string `json:"roleCiTypeConditionFilterGuid" xorm:"guid"`
	RoleCiTypeCondition string `json:"roleCiTypeConditionGuid" xorm:"role_ci_type_condition"`
	CiTypeAttr          string `json:"ciTypeAttr" xorm:"ci_type_attr"`
	CiTypeAttrName      string `json:"ciTypeAttrName" xorm:"ci_type_attr_name"`
	Expression          string `json:"expression" xorm:"expression"`
	RoleCiType          string `json:"roleCiType" xorm:"role_ci_type"`
	Insert              string `json:"insert" xorm:"insert"`
	Delete              string `json:"delete" xorm:"delete"`
	Update              string `json:"update" xorm:"update"`
	Query               string `json:"query" xorm:"query"`
	Execution           string `json:"execute" xorm:"execute"`
	FilterType          string `json:"filterType" xorm:"filter_type"`
	SelectList          string `json:"selectList" xorm:"select_list"`
}

type CoreProcessQueryResponse

type CoreProcessQueryResponse struct {
	Status  string                 `json:"status"`
	Message string                 `json:"message"`
	Data    []*CodeProcessQueryObj `json:"data"`
}

type CoreProcessRequest

type CoreProcessRequest struct {
	EventSeqNo      string `json:"eventSeqNo"`
	EventType       string `json:"eventType"`
	SourceSubSystem string `json:"sourceSubSystem"`
	OperationKey    string `json:"operationKey"`
	OperationData   string `json:"operationData"`
	NotifyRequired  string `json:"notifyRequired"`
	NotifyEndpoint  string `json:"notifyEndpoint"`
	OperationUser   string `json:"operationUser"`
	OperationMode   string `json:"operationMode"`
}

type CoreProcessResult

type CoreProcessResult struct {
	Status  string                `json:"status"`
	Message string                `json:"message"`
	Data    CoreProcessResultData `json:"data"`
}

type CoreProcessResultData

type CoreProcessResultData struct {
	ProcInstId        int                      `json:"procInstId"`
	Status            string                   `json:"status"`
	TaskNodeInstances []*CoreProcessResultData `json:"taskNodeInstances"`
}

type CoreRoleDataObj

type CoreRoleDataObj struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	DisplayName string `json:"displayName"`
}

type CoreRoleDto

type CoreRoleDto struct {
	Status  string            `json:"status"`
	Message string            `json:"message"`
	Data    []CoreRoleDataObj `json:"data"`
}

type CoreStartProcess

type CoreStartProcess struct {
	Status  string               `json:"status"`
	Message string               `json:"message"`
	Data    CoreStartProcessData `json:"data"`
}

type CoreStartProcessData

type CoreStartProcessData struct {
	ProcInstId        string                  `json:"procInstId"`
	Status            string                  `json:"status"`
	TaskNodeInstances []*CoreStartProcessData `json:"taskNodeInstances"`
}

type DatabaseConfig

type DatabaseConfig struct {
	Server   string `json:"server"`
	Port     string `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	DataBase string `json:"database"`
	MaxOpen  int    `json:"maxOpen"`
	MaxIdle  int    `json:"maxIdle"`
	Timeout  int    `json:"timeout"`
}

type DatabaseTableList

type DatabaseTableList struct {
	TableName string `xorm:"TABLE_NAME"`
}

type DefaultReportObjAttrConfig

type DefaultReportObjAttrConfig struct {
	Id        string `json:"id"`
	Title     string `json:"title"`
	Querialbe string `json:"querialbe"`
}

type EntityQueryObj

type EntityQueryObj struct {
	AttrName  string      `json:"attrName"`
	Op        string      `json:"op"`
	Condition interface{} `json:"condition"`
}

type EntityQueryParam

type EntityQueryParam struct {
	Criteria          EntityQueryObj    `json:"criteria"`
	AdditionalFilters []*EntityQueryObj `json:"additionalFilters"`
}

type EntityResponse

type EntityResponse struct {
	Status  string                   `json:"status"`
	Message string                   `json:"message"`
	Data    []map[string]interface{} `json:"data"`
}

type ExportReportCiData

type ExportReportCiData struct {
	CiType             string                   `json:"ciType"`
	ParentCiType       string                   `json:"parentCiType"`
	ParentAttribute    string                   `json:"parentAttribute"`
	RefParentAttribute string                   `json:"refParentAttribute"`
	Attributes         []string                 `json:"attributes"`
	Data               []map[string]interface{} `json:"data"`
}

type ExportReportParam

type ExportReportParam struct {
	ReportId   string   `json:"reportId" binding:"required"`
	RootCiData []string `json:"rootCiData"`
}

type ExportReportResult

type ExportReportResult struct {
	ReportId   string                `json:"reportId"`
	ExportTime string                `json:"exportTime"`
	RootCiType string                `json:"rootCiType"`
	CiData     []*ExportReportCiData `json:"ciData"`
}

type GetStateMachineList

type GetStateMachineList struct {
	Id          string                     `json:"id" xorm:"id"`
	Description string                     `json:"description" xorm:"description"`
	StartState  string                     `json:"startState" xorm:"start_state"`
	FinalState  string                     `json:"finalState" xorm:"final_state"`
	States      []*SysStateTable           `json:"states"`
	Transitions []*SysStateTransitionTable `json:"transitions"`
}

type GlobalConfig

type GlobalConfig struct {
	IsPluginMode         string                        `json:"is_plugin_mode"`
	DefaultLanguage      string                        `json:"default_language"`
	HttpServer           HttpServerConfig              `json:"http_server"`
	Log                  LogConfig                     `json:"log"`
	Database             DatabaseConfig                `json:"database"`
	RsaKeyPath           string                        `json:"rsa_key_path"`
	Wecube               WecubeConfig                  `json:"wecube"`
	Auth                 AuthConfig                    `json:"auth"`
	MenuApiMap           MenuApiMapConfig              `json:"menu_api_map"`
	DefaultReportObjAttr []*DefaultReportObjAttrConfig `json:"default_report_obj_attr"`
}

type GraphElementNode

type GraphElementNode struct {
	// GraphElement *SysGraphElementTable `json:"graphElement" xorm:"graph_element"`
	Id                  string              `json:"graphElementId" xorm:"id"`
	CiType              string              `json:"ciType" xorm:"ci_type"`
	DataName            string              `json:"dataName" xorm:"data_name"`
	Graph               string              `json:"graph" xorm:"graph"`
	ParentElement       string              `json:"parentElement" xorm:"parent_element"`
	ReportObject        string              `json:"reportObject" xorm:"report_object"`
	ShowTable           string              `json:"showTable" xorm:"show_table"`
	DisplayExpression   string              `json:"displayExpression" xorm:"display_expression"`
	NodeGroupName       string              `json:"nodeGroupName" xorm:"node_group_name"`
	LineStartData       string              `json:"lineStartData" xorm:"line_start_data"`
	LineEndData         string              `json:"lineEndData" xorm:"line_end_data"`
	LineDisplayPosition string              `json:"lineDisplayPosition" xorm:"line_display_position"`
	GraphType           string              `json:"graphType" xorm:"graph_type"`
	GraphShapeData      string              `json:"graphShapeData" xorm:"graph_shape_data"`
	GraphShapes         string              `json:"graphShapes" xorm:"graph_shapes"`
	GraphConfigData     string              `json:"graphConfigData" xorm:"graph_config_data"`
	GraphConfigs        string              `json:"graphConfigs" xorm:"graph_configs"`
	EditRefAttr         string              `json:"-" xorm:"edit_ref_attr"`
	EditRefAttrName     string              `json:"editRefAttr" xorm:"edit_ref_attr_name"`
	GraphFilterData     string              `json:"graphFilterData" xorm:"graph_filter_data"`
	GraphFilterValues   string              `json:"graphFilterValues" xorm:"graph_filter_values"`
	Editable            string              `json:"editable" xorm:"editable"`
	OrderData           string              `json:"orderData" xorm:"order_data"`
	UpdateOperation     string              `json:"updateOperation" xorm:"update_operation"`
	Children            []*GraphElementNode `json:"children" xorm:"children"`
}

type GraphQuery

type GraphQuery struct {
	Name          string            `json:"name" xorm:"name"`
	ViewGraphType string            `json:"viewGraphType" xorm:"view_graph_type"`
	NodeGroups    string            `json:"nodeGroups" xorm:"node_groups"`
	GraphDir      string            `json:"graphDir" xorm:"graph_dir"`
	RootData      *GraphElementNode `json:"rootData" xorm:"root_data"`
}

type HandleCiDataParam

type HandleCiDataParam struct {
	InputData  []CiDataMapObj
	CiTypeId   string
	Operation  string
	Operator   string
	BareAction string
	Roles      []string
	Permission bool
	FromCore   bool
	UserToken  string
}

type HistoryGuidObj

type HistoryGuidObj struct {
	Guid        string
	HistoryTime string
}

type HttpServerConfig

type HttpServerConfig struct {
	Port  string `json:"port"`
	Cross bool   `json:"cross"`
}

type ImportStateMachineResult

type ImportStateMachineResult struct {
	DiffFlag       bool                       `json:"diff_flag"`
	StateMachine   *SysStateMachineTable      `json:"state_machine"`
	OldStates      []*SysStateTable           `json:"old_states"`
	NewStates      []*SysStateTable           `json:"new_states"`
	OldTransitions []*SysStateTransitionTable `json:"old_transitions"`
	NewTransitions []*SysStateTransitionTable `json:"new_transitions"`
}

type LogConfig

type LogConfig struct {
	Level            string `json:"level"`
	LogDir           string `json:"log_dir"`
	AccessLogEnable  bool   `json:"access_log_enable"`
	DbLogEnable      bool   `json:"db_log_enable"`
	ArchiveMaxSize   int    `json:"archive_max_size"`
	ArchiveMaxBackup int    `json:"archive_max_backup"`
	ArchiveMaxDay    int    `json:"archive_max_day"`
	Compress         bool   `json:"compress"`
}

type LoginOutputObj

type LoginOutputObj struct {
	Expiration string `json:"expiration"`
	Token      string `json:"token"`
	TokenType  string `json:"tokenType"`
}

type LoginParam

type LoginParam struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}
type MenuApiMapConfig struct {
	Enable bool   `json:"enable"`
	File   string `json:"file"`
}
type MenuApiMapObj struct {
	Menu string           `json:"menu"`
	Urls []*MenuApiUrlObj `json:"urls"`
}
type MenuApiUrlObj struct {
	Url    string `json:"url"`
	Method string `json:"method"`
}

type ModifyReport

type ModifyReport struct {
	Id            string   `json:"id" xorm:"id"`
	Name          string   `json:"name" xorm:"name"`
	CiType        string   `json:"ciType" xorm:"ci_type"`
	CreateUser    string   `json:"createUser" xorm:"create_user"`
	UpdateUser    string   `json:"updateUser" xorm:"update_user"`
	UseRole       string   `json:"useRole" xorm:"use_role"`
	UseRoleList   []string `json:"useRoleList"`
	MgmtRole      string   `json:"mgmtRole" xorm:"mgmt_role"`
	MgmtRoleList  []string `json:"mgmtRoleList"`
	DataName      string   `json:"dataName" xorm:"data_name"`
	DataTitleName string   `json:"dataTitleName" xorm:"data_title_name"`
}

type ModifyReportObject

type ModifyReportObject struct {
	Id            string                    `json:"id" xorm:"id"`
	DataName      string                    `json:"dataName" xorm:"data_name"`
	DataTitleName string                    `json:"dataTitleName" xorm:"data_title_name"`
	Report        string                    `json:"report" xorm:"report"`
	ParentAttr    string                    `json:"parentAttr" xorm:"parent_attr"`
	CiType        string                    `json:"ciType" xorm:"ci_type"`
	MyAttr        string                    `json:"myAttr" xorm:"my_attr"`
	Object        []*ModifyReportObject     `json:"object" xorm:"object"`
	Attr          []*ModifyReportObjectAttr `json:"attr" xorm:"attr"`
}

type ModifyReportObjectAttr

type ModifyReportObjectAttr struct {
	Id            string `json:"id" xorm:"id"`
	CiTypeAttr    string `json:"ciTypeAttr" xorm:"ci_type_attr"`
	DataName      string `json:"dataName" xorm:"data_name"`
	DataTitleName string `json:"dataTitleName" xorm:"data_title_name"`
	Querialbe     string `json:"querialbe" xorm:"querialbe"`
}

type MultiCiDataObj

type MultiCiDataObj struct {
	CiTypeId            string
	Transition          []*SysStateTransitionQuery
	Attributes          []*SysCiTypeAttrTable
	ReferenceAttributes []*SysCiTypeAttrTable
	NowData             []map[string]string
	InputData           []CiDataMapObj
	RefCiTypeMap        map[string]*SysCiTypeTable
}

type MultiRefTable

type MultiRefTable struct {
	FromGuid string `json:"fromGuid" xorm:"from_guid"`
	ToGuid   string `json:"toGuid" xorm:"to_guid"`
}

type OptionItemObj

type OptionItemObj struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type PageInfo

type PageInfo struct {
	StartIndex int `json:"startIndex"`
	PageSize   int `json:"pageSize"`
	TotalRows  int `json:"totalRows"`
}

type PluginCiDataAttrValueRequest

type PluginCiDataAttrValueRequest struct {
	RequestId string                             `json:"requestId"`
	Inputs    []*PluginCiDataAttrValueRequestObj `json:"inputs"`
}

type PluginCiDataAttrValueRequestObj

type PluginCiDataAttrValueRequestObj struct {
	CallbackParameter string `json:"callbackParameter"`
	CiType            string `json:"ciType"`
	Guid              string `json:"guid"`
	CiTypeAttr        string `json:"ciTypeAttr"`
	Value             string `json:"value"`
}

type PluginCiDataOperationOutput

type PluginCiDataOperationOutput struct {
	Outputs []*PluginCiDataOperationOutputObj `json:"outputs"`
}

type PluginCiDataOperationOutputObj

type PluginCiDataOperationOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Guid              string `json:"guid"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginCiDataOperationRequest

type PluginCiDataOperationRequest struct {
	RequestId string                             `json:"requestId"`
	Inputs    []*PluginCiDataOperationRequestObj `json:"inputs"`
}

type PluginCiDataOperationRequestObj

type PluginCiDataOperationRequestObj struct {
	CallbackParameter string `json:"callbackParameter"`
	CiType            string `json:"ciType"`
	Operation         string `json:"operation"`
	JsonData          string `json:"jsonData"`
}

type PluginCiDataOperationResp

type PluginCiDataOperationResp struct {
	ResultCode    string                      `json:"resultCode"`
	ResultMessage string                      `json:"resultMessage"`
	Results       PluginCiDataOperationOutput `json:"results"`
}

type PluginViewConfirmOutput

type PluginViewConfirmOutput struct {
	Outputs []*PluginViewConfirmOutputObj `json:"outputs"`
}

type PluginViewConfirmOutputObj

type PluginViewConfirmOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	ConfirmTime       string `json:"confirmTime"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginViewConfirmRequest

type PluginViewConfirmRequest struct {
	RequestId string                         `json:"requestId"`
	Inputs    []*PluginViewConfirmRequestObj `json:"inputs"`
}

type PluginViewConfirmRequestObj

type PluginViewConfirmRequestObj struct {
	CallbackParameter string `json:"callbackParameter"`
	ViewId            string `json:"viewId"`
	RootCi            string `json:"rootCi"`
}

type PluginViewConfirmResp

type PluginViewConfirmResp struct {
	ResultCode    string                  `json:"resultCode"`
	ResultMessage string                  `json:"resultMessage"`
	Results       PluginViewConfirmOutput `json:"results"`
}

type QueryReport

type QueryReport struct {
	Id         string               `json:"id" xorm:"id"`
	Name       string               `json:"name" xorm:"name"`
	CiType     string               `json:"ciType" xorm:"ci_type"`
	CreateTime string               `json:"createTime" xorm:"create_time"`
	CreateUser string               `json:"createUser" xorm:"create_user"`
	UpdateTime string               `json:"updateTime" xorm:"update_time"`
	UpdateUser string               `json:"updateUser" xorm:"update_user"`
	SqlCache   string               `json:"-" xorm:"sql_cache"`
	Object     []*QueryReportObject `json:"object" xorm:"object"`
}

type QueryReportObject

type QueryReportObject struct {
	Id            string                   `json:"id" xorm:"id"`
	Report        string                   `json:"report" xorm:"report"`
	ParentObject  string                   `json:"parentObject" xorm:"parent_object"`
	ParentAttr    string                   `json:"parentAttr" xorm:"parent_attr"`
	CiType        string                   `json:"ciType" xorm:"ci_type"`
	MyAttr        string                   `json:"myAttr" xorm:"my_attr"`
	DataName      string                   `json:"dataName" xorm:"data_name"`
	DataTitleName string                   `json:"dataTitleName" xorm:"data_title_name"`
	Object        []*QueryReportObject     `json:"object" xorm:"object"`
	Attr          []*QueryReportObjectAttr `json:"attr" xorm:"attr"`
}

type QueryReportObjectAttr

type QueryReportObjectAttr struct {
	Id            string `json:"id" xorm:"id"`
	ReportObject  string `json:"reportObject" xorm:"report_object"`
	CiTypeAttr    string `json:"ciTypeAttr" xorm:"ci_type_attr"`
	DataName      string `json:"dataName" xorm:"data_name"`
	DataTitleName string `json:"dataTitleName" xorm:"data_title_name"`
	Querialbe     string `json:"querialbe" xorm:"querialbe"`
}

type QueryRequestDialect

type QueryRequestDialect struct {
	AssociatedData map[string]string `json:"associatedData"`
	QueryMode      string            `json:"queryMode"`
}

type QueryRequestFilterObj

type QueryRequestFilterObj struct {
	Name     string      `json:"name"`
	Operator string      `json:"operator"`
	Value    interface{} `json:"value"`
}

type QueryRequestParam

type QueryRequestParam struct {
	Filters       []*QueryRequestFilterObj `json:"filters"`
	Dialect       *QueryRequestDialect     `json:"dialect"`
	Paging        bool                     `json:"paging"`
	Pageable      *PageInfo                `json:"pageable"`
	Sorting       *QueryRequestSorting     `json:"sorting"`
	ResultColumns []string                 `json:"resultColumns"`
}

type QueryRequestSorting

type QueryRequestSorting struct {
	Asc   bool   `json:"asc"`
	Field string `json:"field"`
}

type ReportObjectNode

type ReportObjectNode struct {
	Id                string `json:"reportObjectId" xorm:"id"`
	Report            string `json:"report" xorm:"report"`
	ParentObject      string `json:"parentObject" xorm:"parent_object"`
	ParentAttr        string `json:"parentAttr" xorm:"parent_attr"`
	CiType            string `json:"ciType" xorm:"ci_type"`
	MyAttr            string `json:"myAttr" xorm:"my_attr"`
	DataName          string `json:"dataName" xorm:"data_name"`
	DataDisplayName   string `json:"dataDisplayName" xorm:"data_display_name"`
	Status            string `json:"status" xorm:"status"`
	ReportObjAttrName string `json:"reportObjAttrName" xorm:"report_obj_attr_name"`
}

type ResponseErrorJson

type ResponseErrorJson struct {
	StatusCode    string      `json:"statusCode"`
	StatusMessage string      `json:"statusMessage"`
	Data          interface{} `json:"data"`
}

type ResponseErrorObj

type ResponseErrorObj struct {
	ErrorMessage string `json:"errorMessage"`
}

type ResponseJson

type ResponseJson struct {
	StatusCode string      `json:"statusCode"`
	Data       interface{} `json:"data"`
}

type ResponsePageData

type ResponsePageData struct {
	PageInfo PageInfo    `json:"pageInfo"`
	Contents interface{} `json:"contents"`
}

type RoleAttrConditionExtendObj

type RoleAttrConditionExtendObj struct {
	Expression   string   `json:"expression"`
	SelectValues []string `json:"selectValues"`
}

type RoleAttrConditionHeaderObj

type RoleAttrConditionHeaderObj struct {
	SysCiTypeAttrTable
	Options []*RoleAttrOptionItem `json:"options"`
}

type RoleAttrConditionObj

type RoleAttrConditionObj struct {
	Guid         string                               `json:"roleConditionGuid" xorm:"guid"`
	RoleCiTypeId string                               `json:"roleCiType" xorm:"role_ci_type"`
	Insert       string                               `json:"insert" xorm:"insert"`
	Delete       string                               `json:"delete" xorm:"delete"`
	Update       string                               `json:"update" xorm:"update"`
	Query        string                               `json:"query" xorm:"query"`
	Execution    string                               `json:"execute" xorm:"execute"`
	Filters      []*SysRoleCiTypeConditionFilterTable `json:"filters" xorm:"filters"`
}

type RoleAttrConditionResult

type RoleAttrConditionResult struct {
	Body   []map[string]interface{}      `json:"body"`
	Header []*RoleAttrConditionHeaderObj `json:"header"`
}

type RoleAttrOptionItem

type RoleAttrOptionItem struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type RoleCiTypePermissionObj

type RoleCiTypePermissionObj struct {
	Conditions []*RoleAttrConditionObj
	List       []*SysRoleCiTypeListTable
}

type RolePermissionQuery

type RolePermissionQuery struct {
	Role              string                 `json:"-"`
	User              string                 `json:"-"`
	MenuPermissions   []string               `json:"menuPermissions"`
	CiTypePermissions []*CiTypePermissionObj `json:"ciTypePermissionObj"`
}

type SyncDataModelCiAttr

type SyncDataModelCiAttr struct {
	Name             string `json:"name" xorm:"name"`
	EntityName       string `json:"entityName" xorm:"ci_type"`
	Description      string `json:"description" xorm:"description"`
	DataType         string `json:"dataType" xorm:"input_type"`
	RefPackageName   string `json:"refPackageName" xorm:"-"`
	RefEntityName    string `json:"refEntityName" xorm:"ref_ci_type"`
	RefAttributeName string `json:"refAttributeName" xorm:"-"`
	Required         string `json:"required" xorm:"nullable"`
	Multiple         string `json:"multiple"`
}

type SyncDataModelCiType

type SyncDataModelCiType struct {
	Name        string                 `json:"name" xorm:"id"`
	DisplayName string                 `json:"displayName" xorm:"display_name"`
	Description string                 `json:"description" xorm:"description"`
	Attributes  []*SyncDataModelCiAttr `json:"attributes" xorm:"-"`
}

type SyncDataModelResponse

type SyncDataModelResponse struct {
	Status  string                 `json:"status"`
	Message string                 `json:"message"`
	Data    []*SyncDataModelCiType `json:"data"`
}

type SysBaseKeyCatTable

type SysBaseKeyCatTable struct {
	Id          string `json:"catId" xorm:"id" binding:"required"`
	Name        string `json:"catName" xorm:"name"`
	Description string `json:"description" xorm:"description"`
}

type SysBaseKeyCodeTable

type SysBaseKeyCodeTable struct {
	Id          string              `json:"codeId" xorm:"id"`
	CatId       string              `json:"catId" xorm:"cat_id"`
	Code        string              `json:"code" xorm:"code"`
	Value       string              `json:"value" xorm:"value"`
	Description string              `json:"codeDescription" xorm:"description"`
	SeqNo       int                 `json:"seqNo" xorm:"seq_no"`
	Status      string              `json:"status" xorm:"status"`
	Cat         *SysBaseKeyCatTable `json:"cat" xorm:"-"`
}

type SysCiImportGuidMap

type SysCiImportGuidMap struct {
	Id     int    `json:"id" xorm:"id"`
	Source string `json:"source" xorm:"source"`
	Target string `json:"target" xorm:"target"`
}

type SysCiTemplateAttrTable

type SysCiTemplateAttrTable struct {
	Id                      string `json:"id" xorm:"id"`
	CiTemplate              string `json:"ciTemplate" xorm:"ci_template"`
	Name                    string `json:"name" xorm:"name"`
	DisplayName             string `json:"displayName" xorm:"display_name"`
	Description             string `json:"description" xorm:"description"`
	Status                  string `json:"status" xorm:"status"`
	InputType               string `json:"inputType" xorm:"input_type"`
	DataType                string `json:"dataType" xorm:"data_type"`
	DataLength              int    `json:"dataLength" xorm:"data_length"`
	TextValidate            string `json:"textValidate" xorm:"text_validate"`
	RefCiType               string `json:"-" xorm:"ref_ci_type"`
	RefName                 string `json:"-" xorm:"ref_name"`
	RefType                 string `json:"-" xorm:"ref_type"`
	RefFilter               string `json:"-" xorm:"ref_filter"`
	RefUpdateStateValidate  string `json:"-" xorm:"ref_update_state_validate"`
	RefConfirmStateValidate string `json:"-" xorm:"ref_confirm_state_validate"`
	SelectList              string `json:"-" xorm:"select_list"`
	UiSearchOrder           int    `json:"uiSearchOrder" xorm:"ui_search_order"`
	UiFormOrder             int    `json:"uiFormOrder" xorm:"ui_form_order"`
	UniqueConstraint        string `json:"uniqueConstraint" xorm:"unique_constraint"`
	UiNullable              string `json:"uiNullable" xorm:"ui_nullable"`
	Nullable                string `json:"nullable" xorm:"nullable"`
	Editable                string `json:"editable" xorm:"editable"`
	DisplayByDefault        string `json:"displayByDefault" xorm:"display_by_default"`
	PermissionUsage         string `json:"permissionUsage" xorm:"permission_usage"`
	ResetOnEdit             string `json:"resetOnEdit" xorm:"reset_on_edit"`
	Source                  string `json:"source" xorm:"source"`
	Customizable            string `json:"customizable" xorm:"customizable"`
	AutofillAble            string `json:"-" xorm:"autofillable"`
	AutofillRule            string `json:"-" xorm:"autofill_rule"`
	AutofillType            string `json:"-" xorm:"autofill_type"`
	EditGroupControl        string `json:"-" xorm:"edit_group_control"`
	EditGroupValues         string `json:"-" xorm:"edit_group_value"`
}

type SysCiTemplateTable

type SysCiTemplateTable struct {
	Id           string `json:"id" xorm:"id"`
	Description  string `json:"description" xorm:"description"`
	ImageFile    string `json:"imageFile" xorm:"image_file"`
	FileName     string `json:"fileName" xorm:"-"`
	StateMachine string `json:"stateMachine" xorm:"state_machine"`
}

type SysCiTypeAttrTable

type SysCiTypeAttrTable struct {
	Id                      string `json:"ciTypeAttrId" xorm:"id"`
	CiType                  string `json:"ciTypeId" xorm:"ci_type"`
	Name                    string `json:"propertyName" xorm:"name"`
	DisplayNameTmp          string `json:"displayName" xorm:"-"`
	DisplayName             string `json:"name" xorm:"display_name"`
	Description             string `json:"description" xorm:"description"`
	Status                  string `json:"status" xorm:"status"`
	InputType               string `json:"inputType" xorm:"input_type"`
	DataType                string `json:"propertyType" xorm:"data_type"`
	DataLength              int    `json:"length" xorm:"data_length"`
	TextValidate            string `json:"regularExpressionRule" xorm:"text_validate"`
	RefCiType               string `json:"referenceId" xorm:"ref_ci_type"`
	RefName                 string `json:"referenceName" xorm:"ref_name"`
	RefType                 string `json:"referenceType" xorm:"ref_type"`
	RefFilter               string `json:"referenceFilter" xorm:"ref_filter"`
	RefUpdateStateValidate  string `json:"refUpdateStateValidate" xorm:"ref_update_state_validate"`
	RefConfirmStateValidate string `json:"refConfirmStateValidate" xorm:"ref_confirm_state_validate"`
	SelectList              string `json:"selectList" xorm:"select_list"`
	UiSearchOrder           int    `json:"uiSearchOrder" xorm:"ui_search_order"`
	UiFormOrder             int    `json:"uiFormOrder" xorm:"ui_form_order"`
	UniqueConstraint        string `json:"uniqueConstraint" xorm:"unique_constraint"`
	UiNullable              string `json:"uiNullable" xorm:"ui_nullable"`
	Nullable                string `json:"nullable" xorm:"nullable"`
	Editable                string `json:"editable" xorm:"editable"`
	DisplayByDefault        string `json:"displayByDefault" xorm:"display_by_default"`
	PermissionUsage         string `json:"permissionUsage" xorm:"permission_usage"`
	ResetOnEdit             string `json:"resetOnEdit" xorm:"reset_on_edit"`
	Source                  string `json:"source" xorm:"source"`
	Customizable            string `json:"customizable" xorm:"customizable"`
	AutofillAble            string `json:"autofillable" xorm:"autofillable"`
	AutofillRule            string `json:"autoFillRule" xorm:"autofill_rule"`
	AutofillType            string `json:"autoFillType" xorm:"autofill_type"`
	EditGroupControl        string `json:"editGroupControl" xorm:"edit_group_control"`
	EditGroupValues         string `json:"editGroupValues" xorm:"edit_group_value"`
}

type SysCiTypeTable

type SysCiTypeTable struct {
	Id           string `json:"ciTypeId" xorm:"id" binding:"required"`
	DisplayName  string `json:"name" xorm:"display_name"`
	Description  string `json:"description" xorm:"description"`
	Status       string `json:"status" xorm:"status"`
	ImageFile    string `json:"imageFile" xorm:"image_file"`
	FileName     string `json:"fileName" xorm:"file_name"`
	CiGroup      string `json:"ciGroup" xorm:"ci_group"`
	CiLayer      string `json:"ciLayer" xorm:"ci_layer"`
	CiTemplate   string `json:"ciTemplate" xorm:"ci_template"`
	StateMachine string `json:"stateMachine" xorm:"state_machine"`
	SeqNo        string `json:"seqNo" xorm:"seq_no"`
}

type SysFilesTable

type SysFilesTable struct {
	Guid    string `json:"guid"`
	Type    string `json:"type"`
	Content []byte `json:"content"`
}

type SysGraphElementTable

type SysGraphElementTable struct {
	Id                  string `json:"graphElementId" xorm:"id"`
	Graph               string `json:"graph" xorm:"graph"`
	ParentElement       string `json:"parentElement" xorm:"parent_element"`
	ReportObject        string `json:"reportObject" xorm:"report_object"`
	ShowTable           string `json:"showTable" xorm:"show_table"`
	DisplayExpression   string `json:"displayExpression" xorm:"display_expression"`
	NodeGroupName       string `json:"nodeGroupName" xorm:"node_group_name"`
	LineStartData       string `json:"lineStartData" xorm:"line_start_data"`
	LineEndData         string `json:"lineEndData" xorm:"line_end_data"`
	LineDisplayPosition string `json:"lineDisplayPosition" xorm:"line_display_position"`
	GraphType           string `json:"graphType" xorm:"graph_type"`
	GraphShapeData      string `json:"graphShapeData" xorm:"graph_shape_data"`
	GraphShapes         string `json:"graphShapes" xorm:"graph_shapes"`
	GraphConfigData     string `json:"graphConfigData" xorm:"graph_config_data"`
	GraphConfigs        string `json:"graphConfigs" xorm:"graph_configs"`
	EditRefAttr         string `json:"editRefAttr" xorm:"edit_ref_attr"`
	GraphFilterData     string `json:"graphFilterData" xorm:"graph_filter_data"`
	GraphFilterValues   string `json:"graphFilterValues" xorm:"graph_filter_values"`
	Editable            string `json:"editable" xorm:"editable"`
	SeqNo               string `json:"seqNo" xorm:"seq_no"`
	OrderData           string `json:"orderData" xorm:"order_data"`
	UpdateOperation     string `json:"updateOperation" xorm:"update_operation"`
}

type SysGraphTable

type SysGraphTable struct {
	Id         string `json:"graphId" xorm:"id"`
	Name       string `json:"name" xorm:"name"`
	View       string `json:"view" xorm:"view"`
	GraphType  string `json:"graphType" xorm:"graph_type"`
	NodeGroups string `json:"nodeGroups" xorm:"node_groups"`
	GraphDir   string `json:"graphDir" xorm:"graph_dir"`
}

type SysLogTable

type SysLogTable struct {
	LogCat      string `json:"logCat" xorm:"log_cat"`
	Operator    string `json:"operator" xorm:"operator"`
	Operation   string `json:"operation" xorm:"operation"`
	Content     string `json:"content" xorm:"content"`
	RequestUrl  string `json:"requestUrl" xorm:"request_url"`
	ClientHost  string `json:"clientHost" xorm:"client_host"`
	CreatedDate string `json:"createdDate" xorm:"created_date"`
	DataCiType  string `json:"dataCiType" xorm:"data_ci_type"`
	DataGuid    string `json:"dataGuid" xorm:"data_guid"`
	DataKeyName string `json:"dataKeyName" xorm:"data_key_name"`
	Response    string `json:"response" xorm:"response"`
}

type SysMenuTable

type SysMenuTable struct {
	Id          string `json:"id" xorm:"id"`
	DisplayName string `json:"displayName" xorm:"display_name"`
	SeqNo       int    `json:"seqNo" xorm:"seq_no"`
	Parent      string `json:"parent" xorm:"parent"`
	IsActive    string `json:"isActive" xorm:"is_active"`
}

type SysReportObjectAttrTable

type SysReportObjectAttrTable struct {
	Id            string `json:"reportObjectAttrId" xorm:"id"`
	ReportObject  string `json:"reportObject" xorm:"report_object"`
	CiTypeAttr    string `json:"ciTypeAttr" xorm:"ci_type_attr"`
	DataName      string `json:"dataName" xorm:"data_name"`
	DataTitleName string `json:"dataTitleName" xorm:"data_title_name"`
	Querialbe     string `json:"querialbe" xorm:"querialbe"`
	AttrInputType string `json:"-" xorm:"attr_input_type"`
}

type SysReportObjectFilterTable

type SysReportObjectFilterTable struct {
	Id                string `json:"reportObjectFilterId" xorm:"id"`
	FilterName        string `json:"filterName" xorm:"filter_name"`
	FilterCiType      string `json:"filterCiType" xorm:"filter_ci_type"`
	FilterRule        string `json:"filterRule" xorm:"filter_rule"`
	SysReportObject   string `json:"sysReportObject" xorm:"sys_report_object"`
	Multiple          string `json:"multiple" xorm:"multiple"`
	FilterDisplayName string `json:"filterDisplayName" xorm:"filter_display_name"`
}

type SysReportObjectTable

type SysReportObjectTable struct {
	Id            string `json:"reportObjectId" xorm:"id"`
	Report        string `json:"report" xorm:"report"`
	ParentObject  string `json:"parentObject" xorm:"parent_object"`
	ParentAttr    string `json:"parentAttr" xorm:"parent_attr"`
	CiType        string `json:"ciType" xorm:"ci_type"`
	MyAttr        string `json:"myAttr" xorm:"my_attr"`
	DataName      string `json:"dataName" xorm:"data_name"`
	DataTitleName string `json:"dataTitleName" xorm:"data_title_name"`
	SeqNo         int    `json:"seqNo" xorm:"seq_no"`
}

type SysReportTable

type SysReportTable struct {
	Id         string `json:"id" xorm:"id"`
	Name       string `json:"name" xorm:"name"`
	CiType     string `json:"ciType" xorm:"ci_type"`
	CreateTime string `json:"createTime" xorm:"create_time"`
	CreateUser string `json:"createUser" xorm:"create_user"`
	UpdateTime string `json:"updateTime" xorm:"update_time"`
	UpdateUser string `json:"updateUser" xorm:"update_user"`
	SqlCache   string `json:"-" xorm:"sql_cache"`
}

type SysRoleCiTypeConditionFilterTable

type SysRoleCiTypeConditionFilterTable struct {
	Guid                string   `json:"roleCiTypeConditionFilterGuid" xorm:"guid"`
	RoleCiTypeCondition string   `json:"roleCiTypeConditionGuid" xorm:"role_ci_type_condition"`
	CiTypeAttr          string   `json:"ciTypeAttr" xorm:"ci_type_attr"`
	CiTypeAttrName      string   `json:"ciTypeAttrName" xorm:"ci_type_attr_name"`
	Expression          string   `json:"expression" xorm:"expression"`
	ConditionValueExprs []string `json:"conditionValueExprs" xorm:"-"`
	FilterType          string   `json:"filterType" xorm:"filter_type"`
	SelectList          string   `json:"selectList" xorm:"select_list"`
	SelectValues        []string `json:"selectValues" xorm:"-"`
}

type SysRoleCiTypeConditionTable

type SysRoleCiTypeConditionTable struct {
	Guid       string `json:"guid" xorm:"guid"`
	RoleCiType string `json:"roleCiType" xorm:"role_ci_type"`
	Insert     string `json:"insert" xorm:"insert"`
	Delete     string `json:"delete" xorm:"delete"`
	Update     string `json:"update" xorm:"update"`
	Query      string `json:"query" xorm:"query"`
	Execution  string `json:"execute" xorm:"execute"`
}

type SysRoleCiTypeListTable

type SysRoleCiTypeListTable struct {
	Guid       string `json:"guid" xorm:"guid"`
	RoleCiType string `json:"roleCiType" xorm:"role_ci_type"`
	List       string `json:"list" xorm:"list"`
	ListName   string `json:"listName" xorm:"-"`
	Insert     string `json:"insert" xorm:"insert"`
	Delete     string `json:"delete" xorm:"delete"`
	Update     string `json:"update" xorm:"update"`
	Query      string `json:"query" xorm:"query"`
	Execution  string `json:"execute" xorm:"execute"`
}

type SysRoleCiTypeTable

type SysRoleCiTypeTable struct {
	Guid      string `json:"guid" xorm:"guid"`
	RoleId    string `json:"roleId" xorm:"role_id"`
	CiType    string `json:"ciTypeId" xorm:"ci_type"`
	Insert    string `json:"insert" xorm:"insert"`
	Delete    string `json:"delete" xorm:"delete"`
	Update    string `json:"update" xorm:"update"`
	Query     string `json:"query" xorm:"query"`
	Execution string `json:"execute" xorm:"execute"`
}

type SysRoleMenuTable

type SysRoleMenuTable struct {
	Id       string `json:"id" xorm:"id"`
	RoleGuid string `json:"roleName" xorm:"role_guid"`
	MenuGuid string `json:"menuId" xorm:"menu_guid"`
}

type SysRoleReportTable

type SysRoleReportTable struct {
	Id         string `json:"id" xorm:"id"`
	Role       string `json:"role" xorm:"role"`
	Report     string `json:"report" xorm:"report"`
	Permission string `json:"permission" xorm:"permission"`
}

type SysRoleTable

type SysRoleTable struct {
	Id          string `json:"roleName" xorm:"id" binding:"required"`
	Description string `json:"description" xorm:"description"`
	IsSystem    string `json:"isSystem" xorm:"is_system"`
}

type SysRoleUserTable

type SysRoleUserTable struct {
	Id     int    `json:"id" xorm:"id"`
	RoleId string `json:"roleId" xorm:"role_id"`
	UserId string `json:"userId" xorm:"user_id"`
}

type SysRoleViewTable

type SysRoleViewTable struct {
	Id         string `json:"id" xorm:"id"`
	Role       string `json:"role" xorm:"role"`
	View       string `json:"view" xorm:"view"`
	Permission string `json:"permission" xorm:"permission"`
}

type SysStateMachineTable

type SysStateMachineTable struct {
	Id          string `json:"id" xorm:"id"`
	Description string `json:"description" xorm:"description"`
	StartState  string `json:"startState" xorm:"start_state"`
	FinalState  string `json:"finalState" xorm:"final_state"`
}

type SysStateTable

type SysStateTable struct {
	Id                string `json:"id" xorm:"id"`
	Name              string `json:"name" xorm:"name"`
	Description       string `json:"description" xorm:"description"`
	StateMachine      string `json:"stateMachine" xorm:"state_machine"`
	UniquePathTrigger string `json:"uniquePathTrigger" xorm:"unique_path_trigger"`
	IsConfirm         string `json:"isConfirm" xorm:"is_confirm"`
}

type SysStateTransitionQuery

type SysStateTransitionQuery struct {
	CiType           string `json:"ci_type" xorm:"ci_type"`
	Guid             string `json:"guid" xorm:"guid"`
	StateMachine     string `json:"stateMachine" xorm:"state_machine"`
	CurrentState     string `json:"currentState" xorm:"current_state"`
	CurrentStateName string `json:"currentStateName" xorm:"current_state_name"`
	TargetState      string `json:"targetState" xorm:"target_state"`
	TargetStateName  string `json:"targetStateName" xorm:"target_state_name"`
	TargetIsConfirm  string `json:"targetIsConfirm" xorm:"target_is_confirm"`
	TargetUniquePath string `json:"targetUniquePath" xorm:"target_unique_path"`
	Operation        string `json:"operation" xorm:"operation"`
	OperationEn      string `json:"operation_en" xorm:"operation_en"`
	Action           string `json:"action" xorm:"action"`
	StartState       string `json:"start_state" xorm:"start_state"`
	FinalState       string `json:"final_state" xorm:"final_state"`
}

type SysStateTransitionTable

type SysStateTransitionTable struct {
	Guid              string `json:"guid" xorm:"guid"`
	StateMachine      string `json:"stateMachine" xorm:"state_machine"`
	CurrentState      string `json:"currentState" xorm:"current_state"`
	TargetState       string `json:"targetState" xorm:"target_state"`
	Operation         string `json:"operation" xorm:"operation"`
	OperationEn       string `json:"operation_en" xorm:"operation_en"`
	Permission        string `json:"permission" xorm:"permission"`
	Action            string `json:"action" xorm:"action"`
	OperationFormType string `json:"operationFormType" xorm:"operation_form_type"`
	OperationMultiple string `json:"operationMultiple" xorm:"operation_multiple"`
}

type SysUserTable

type SysUserTable struct {
	Id                string `json:"userId" xorm:"id"  binding:"required"`
	DisplayName       string `json:"displayName" xorm:"display_name"`
	EncryptedPassword string `json:"-" xorm:"encrypted_password"`
	Description       string `json:"description" xorm:"description"`
	IsSystem          string `json:"isSystem" xorm:"is_system"`
}

type SysViewTable

type SysViewTable struct {
	Id            string    `json:"viewId" xorm:"id"`
	Name          string    `json:"name" xorm:"name"`
	Report        string    `json:"report" xorm:"report"`
	Editable      string    `json:"editable" xorm:"editable"`
	SuportVersion string    `json:"suportVersion" xorm:"suport_version"`
	Multiple      string    `json:"multiple" xorm:"multiple"`
	CreateTime    time.Time `json:"createTime" xorm:"create_time"`
	CreateUser    string    `json:"createUser" xorm:"create_user"`
	UpdateTime    time.Time `json:"updateTime" xorm:"update_time"`
	UpdateUser    string    `json:"updateUser" xorm:"update_user"`
	FilterAttr    string    `json:"filterAttr" xorm:"filter_attr"`
	FilterValue   string    `json:"filterValue" xorm:"filter_value"`
}

type SysWecubeProcessTable

type SysWecubeProcessTable struct {
	Guid                  string    `json:"guid"`
	CiDataGuid            string    `json:"ci_data_guid"`
	WecubeProcInstanceTmp string    `json:"wecube_proc_instance_tmp"`
	WecubeProcInstance    string    `json:"wecube_proc_instance"`
	WecubeProcDefine      string    `json:"wecube_proc_define"`
	Status                string    `json:"status"`
	UpdateTime            time.Time `json:"update_time"`
}

type TransFiltersParam

type TransFiltersParam struct {
	IsStruct   bool
	StructObj  interface{}
	Prefix     string
	KeyMap     map[string]string
	PrimaryKey string
}

type UpdatePasswordParam

type UpdatePasswordParam struct {
	OldPassword string `json:"oldPassword" binding:"required"`
	NewPassword string `json:"newPassword" binding:"required"`
}

type UpdateRoleMenuParam

type UpdateRoleMenuParam struct {
	RoleName string   `json:"roleName"`
	MenuList []string `json:"menuList"`
}

type UpdateRoleUserParam

type UpdateRoleUserParam struct {
	RoleName string   `json:"roleName"`
	UserList []string `json:"userList"`
}

type UpdateViewParam

type UpdateViewParam struct {
	Id            string   `json:"viewId" xorm:"id" binding:"required"`
	Name          string   `json:"name" xorm:"name" binding:"required"`
	Report        string   `json:"report" xorm:"report" binding:"required"`
	Editable      string   `json:"editable" xorm:"editable"`
	SuportVersion string   `json:"suportVersion" xorm:"suport_version"`
	Multiple      string   `json:"multiple" xorm:"multiple"`
	FilterAttr    string   `json:"filterAttr" xorm:"filter_attr"`
	FilterValue   string   `json:"filterValue" xorm:"filter_value"`
	MGMT          []string `json:"MGMT" xorm:"-"`
	USE           []string `json:"USE" xorm:"-"`
}

type ViewData

type ViewData struct {
	ViewId      string `json:"viewId" xorm:"view_id"`
	RootCi      string `json:"rootCi" xorm:"root_ci"`
	ReportId    string `json:"reportId"`
	ConfirmTime string `json:"confirmTime" xorm:"confirm_time"`
}

type ViewQuery

type ViewQuery struct {
	Editable       string        `json:"editable" xorm:"editable"`
	SuportVersion  string        `json:"suportVersion" xorm:"suport_version"`
	Multiple       string        `json:"multiple" xorm:"multiple"`
	Report         string        `json:"report" xorm:"report"`
	CiType         string        `json:"ciType" xorm:"ci_type"`
	FilterAttr     string        `json:"-" xorm:"filter_attr"`
	FilterAttrName string        `json:"filterAttr" xorm:"filter_attr_name"`
	FilterValue    string        `json:"filterValue" xorm:"filter_value"`
	Graphs         []*GraphQuery `json:"graphs" xorm:"graphs"`
}

type WecubeConfig

type WecubeConfig struct {
	BaseUrl       string `json:"base_url"`
	JwtSigningKey string `json:"jwt_signing_key"`
	SubSystemCode string `json:"sub_system_code"`
	SubSystemKey  string `json:"sub_system_key"`
	EncryptSeed   string `json:"encrypt_seed"`
}

Jump to

Keyboard shortcuts

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