matrix

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sys_matrixaccess

type Sys_matrixaccess struct {
	AccId      int    `xorm:"accid" json:"accid"`
	RangeId    string `xorm:"rangeid" json:"rangeid"` // 对应数据范围的ID
	MatrixId   string `xorm:"matrixid" json:"matrixid"`
	AccObjID   string `xorm:"accobjid" json:"accobjid"`     // 权限ID
	AccObjType string `xorm:"accobjtype" json:"accobjtype"` // 权限类型 role,user,dept,job
	AccName    string `xorm:"accname" json:"accname"`       // 权限用户名称
	Entid      int    `xorm:"entid" json:"entid"`
	Ver        string `xorm:"ver" json:"ver"`
}

func (*Sys_matrixaccess) TableName

func (*Sys_matrixaccess) TableName() string

type Sys_matrixaccessbyrule

type Sys_matrixaccessbyrule struct {
	AccId         int    `xorm:"accid" json:"accid"`     // 主健
	RangeId       string `xorm:"rangeid" json:"rangeid"` // 对应数据范围的ID
	MatrixId      string `xorm:"matrixid" json:"matrixid"`
	Pid           int    `xorm:"pid" json:"pid"`
	GridId        int    `xorm:"gridid" json:"gridid"`
	FromSqlCol    string `xorm:"fromsqlcol" json:"fromsqlcol"`
	DataSource    int    `xorm:"datasource" json:"datasource"`
	DataSourceCol string `xorm:"datasourcecol" json:"datasourcecol"`
	Entid         int    `xorm:"entid" json:"entid"`
	Ver           string `xorm:"ver" json:"ver"`
}

func (*Sys_matrixaccessbyrule) TableName

func (*Sys_matrixaccessbyrule) TableName() string

type Sys_matrixcol

type Sys_matrixcol struct {
	ColId      int    `xorm:"colid" json:"colid"` // 主健 一定要自增按此ID来作务拼接refkey顺序的
	MatrixId   string `xorm:"matrixid" json:"matrixid"`
	Sqlcol     string `xorm:"sqlcol" json:"sqlcol"`         // 关联字段名
	ColName    string `xorm:"colname" json:"colname"`       // 关联字段中文
	Op         string `xorm:"op" json:"op"`                 // 比较符号 例:> < = !=
	IsMultiple int    `xorm:"ismultiple" json:"ismultiple"` // 是否允许多选
	DataSource int    `xorm:"datasource" json:"datasource"` // 数据源PID
	DSGroupID  int    `xorm:"dsgroupid" json:"dsgroupid"`   // 字典类别ID 对应eb_infomain
	Entid      int    `xorm:"entid" json:"entid"`
	Ver        string `xorm:"ver" json:"ver"`
}

func (*Sys_matrixcol) TableName

func (*Sys_matrixcol) TableName() string

type Sys_matrixdata_h

type Sys_matrixdata_h struct {
	RangeId   string `xorm:"rangeid" json:"rangeid"` // 主健 数据范围的ID
	MatrixId  string `xorm:"matrixid" json:"matrixid"`
	RangeName string `xorm:"rangename" json:"rangename"` // 数据范围名称
	Isopen    int    `xorm:"isopen" json:"isopen"`       // 是否启用
	EntId     int    `xorm:"entid" json:"entid"`
	IsAny     int    `xorm:"isany" json:"isany"` // 任意数据 例:某角色可以查看所有数据,任意数据范围时不需要指定匹配字段
}

func (*Sys_matrixdata_h) TableName

func (*Sys_matrixdata_h) TableName() string

type Sys_matrixdata_v

type Sys_matrixdata_v struct {
	WhereId      int    `xorm:"whereid" json:"whereid"` // 主健
	MatrixId     string `xorm:"matrixid" json:"matrixid"`
	RangeId      string `xorm:"rangeid" json:"rangeid"`           // 对应数据范围的ID
	Sqlcol       string `xorm:"sqlcol" json:"sqlcol"`             // 关联字段名
	ColName      string `xorm:"colname" json:"colname"`           // 关联字段中文
	CompareValue string `xorm:"comparevalue" json:"comparevalue"` // 比较值 一个或多个
	CompareText  string `xorm:"comparetext" json:"comparetext"`
	Entid        int    `xorm:"entid" json:"entid"`
	Ver          string `xorm:"ver" json:"ver"`
	Op           string `xorm:"op" json:"op"` // 比较符号 > < = != 等 从sys_matrixcol表中取值保存到此表
}

func (*Sys_matrixdata_v) TableName

func (*Sys_matrixdata_v) TableName() string

type Sys_matrixtype

type Sys_matrixtype struct {
	MatrixId   string           `xorm:"matrixid" json:"matrixid"`
	MatrixCode string           `xorm:"matrixcode" json:"matrixcode"` // 矩阵类别编码  注:数据权限时一个PID可以使用多个
	MatrixName string           `xorm:"matrixname" json:"matrixname"` // 矩阵类别名称
	TypeId     int              `xorm:"typeid" json:"typeid"`         // 用途类别 1表示数据权限  2表示审批权限   3表示抄送人
	IsOpen     int              `xorm:"isopen" json:"isopen"`         // 是否启用
	Entid      int              `xorm:"entid" json:"entid"`
	Ver        string           `xorm:"ver" json:"ver"`
	SqlColList []*Sys_matrixcol `xorm:"sqlcollist" json:"sqlcollist"`
}

func (*Sys_matrixtype) TableName

func (*Sys_matrixtype) TableName() string

type Sys_matrixvspid

type Sys_matrixvspid struct {
	Mapid    int    `xorm:"mapid" json:"mapid"` // 主健
	Matrixid string `xorm:"matrixid" json:"matrixid"`
	Pid      int    `xorm:"pid" json:"pid"`
	TypeId   int    `xorm:"typeid" json:"typeid"` // 用途类别 1表示数据权限  2表示审批权限   3表示抄送人
	IsOpen   int    `xorm:"isopen" json:"isopen"`
	EntId    int    `xorm:"EntId" json:"EntId"`
	StepId   string `xorm:"stepid" json:"stepid"`
}

func (*Sys_matrixvspid) TableName

func (*Sys_matrixvspid) TableName() string

Jump to

Keyboard shortcuts

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