Versions in this module Expand all Collapse all v5 v5.3.19 Mar 14, 2025 v5.3.18 Mar 14, 2025 v5.3.17 Mar 1, 2025 v5.3.16 Mar 1, 2025 v5.3.15 Mar 1, 2025 v5.3.14 Feb 5, 2025 Changes in this version + var OpenSub = false + func CreateIndex(args *ArgsCreateIndex) (err error) + func CreateIndexParam(args *ArgsCreateIndexParam) (err error) + func CreateIndexRelation(args *ArgsCreateIndexRelation) (err error) + func DeleteIndex(id int64) (err error) + func DeleteIndexParam(id int64) (err error) + func DeleteIndexRelation(id int64) (err error) + func GetIndexNameByCode(code string) (name string) + func GetIndexNameByID(id int64) (name string) + func GetIndexParamValByCode(code string) (result string) + func GetIndexParamValByIndexCode(indexCode string, code string) (result string) + func Init() (err error) + func UpdateIndex(args *ArgsUpdateIndex) (err error) + func UpdateIndexParam(args *ArgsUpdateIndexParam) (err error) + func UpdateIndexRelation(args *ArgsUpdateIndexRelation) (err error) + func UpdateIndexRelationAutoWeight(id, autoWeight int64) (err error) + type ArgsCreateIndex struct + Code string + Decision string + Description string + IndexDirection string + IndexType string + IsEnable bool + IsSystem bool + Name string + Threshold int64 + type ArgsCreateIndexParam struct + Code string + IndexID int64 + Name string + ParamVal string + type ArgsCreateIndexRelation struct + AutoWeight int64 + IndexID int64 + IsAutoWeight bool + RelationIndexID int64 + Weight int64 + type ArgsGetIndexList struct + IsRemove bool + IsSystem bool + NeedIsSystem bool + Pages CoreSQL2.ArgsPages + Search string + type ArgsGetIndexParamList struct + IndexID int64 + IsRemove bool + Pages CoreSQL2.ArgsPages + Search string + type ArgsGetIndexRelationList struct + IndexID int64 + IsRemove bool + Pages CoreSQL2.ArgsPages + Search string + type ArgsUpdateIndex struct + Decision string + Description string + ID int64 + IndexDirection string + IndexType string + IsEnable bool + Name string + Threshold int64 + type ArgsUpdateIndexParam struct + ID int64 + ParamVal string + type ArgsUpdateIndexRelation struct + ID int64 + IsAutoWeight bool + Weight int64 + type DataGetIndexAll struct + Code string + Decision string + Description string + ID int64 + IndexDirection string + IndexType string + IsEnable bool + IsSystem bool + Name string + SubIndex []DataGetIndexAll + Threshold int64 + func GetIndexAll() (dataList []DataGetIndexAll, err error) + type DataGetIndexListByTop struct + Code string + Decision string + Description string + IndexDirection string + IndexID int64 + IndexType string + Name string + func GetIndexListByTop() (dataList []DataGetIndexListByTop, dataCount int64, err error) + type FieldsIndex struct + Code string + CreateAt time.Time + Decision string + DeleteAt time.Time + Description string + ID int64 + IndexDirection string + IndexType string + IsEnable bool + IsSystem bool + Name string + Threshold int64 + UpdateAt time.Time + func GetIndexAllNoStruct() (dataList []FieldsIndex) + func GetIndexByCode(code string) (data FieldsIndex, err error) + func GetIndexByID(id int64) (data FieldsIndex, err error) + func GetIndexList(args *ArgsGetIndexList) (dataList []FieldsIndex, dataCount int64, err error) + type FieldsIndexParam struct + Code string + CreateAt time.Time + DeleteAt time.Time + ID int64 + IndexID int64 + Name string + ParamVal string + UpdateAt time.Time + func GetIndexParamByCode(indexID int64, code string) (data FieldsIndexParam, err error) + func GetIndexParamByIndexCode(indexCode string, code string) (data FieldsIndexParam, err error) + func GetIndexParamList(args *ArgsGetIndexParamList) (dataList []FieldsIndexParam, dataCount int64, err error) + type FieldsIndexRelation struct + AutoWeight int64 + CreateAt time.Time + DeleteAt time.Time + ID int64 + IndexID int64 + IsAutoWeight bool + RelationIndexID int64 + UpdateAt time.Time + Weight int64 + func GetIndexByRelationCode(topCode string) (dataList []FieldsIndexRelation, err error) + func GetIndexByRelationID(topID int64) (dataList []FieldsIndexRelation, err error) + func GetIndexRelationByCode(parentID, indexID int64) (data FieldsIndexRelation, err error) + func GetIndexRelationList(args *ArgsGetIndexRelationList) (dataList []FieldsIndexRelation, dataCount int64, err error)