Documentation ¶
Index ¶
- type ConfigRepo
- func (r *ConfigRepo) Create(model *model.ZdConfig) (err error)
- func (r *ConfigRepo) GenConfigRes(config model.ZdConfig, res *domain.ResConfig)
- func (r *ConfigRepo) Get(id uint) (model model.ZdConfig, err error)
- func (r *ConfigRepo) List(keywords string, page int) (models []*model.ZdConfig, total int, err error)
- func (r *ConfigRepo) ListAll() (models []*model.ZdConfig)
- func (r *ConfigRepo) Remove(id uint) (err error)
- func (r *ConfigRepo) Update(model *model.ZdConfig) (err error)
- func (r *ConfigRepo) UpdateConfigRange(rang string, id uint) (err error)
- func (r *ConfigRepo) UpdateYaml(po model.ZdConfig) (err error)
- type DefRepo
- func (r *DefRepo) Create(def *model.ZdDef) (err error)
- func (r *DefRepo) GenDef(def model.ZdDef, data *domain.DefData)
- func (r *DefRepo) Get(id uint) (def model.ZdDef, err error)
- func (r *DefRepo) List(keywords string, page int) (models []*model.ZdDef, total int, err error)
- func (r *DefRepo) ListAll() (models []*model.ZdDef)
- func (r *DefRepo) Remove(id uint) (err error)
- func (r *DefRepo) Update(def *model.ZdDef) (err error)
- func (r *DefRepo) UpdateYaml(po model.ZdDef) (err error)
- type ExcelRepo
- func (r *ExcelRepo) Create(model *model.ZdExcel) (err error)
- func (r *ExcelRepo) Get(id uint) (model model.ZdExcel, err error)
- func (r *ExcelRepo) GetBySheet(referName, sheet string) (model model.ZdExcel, err error)
- func (r *ExcelRepo) List(keywords string, page int) (models []*model.ZdExcel, total int, err error)
- func (r *ExcelRepo) ListAll() (models []*model.ZdExcel)
- func (r *ExcelRepo) ListFiles() (models []*model.ZdExcel)
- func (r *ExcelRepo) ListSheets(referName string) (models []*model.ZdExcel)
- func (r *ExcelRepo) Remove(id uint) (err error)
- func (r *ExcelRepo) Update(model *model.ZdExcel) (err error)
- type FieldRepo
- func (r *FieldRepo) AddOrderForNextCases(srcID uint, targetOrder int, targetParentID uint) (err error)
- func (r *FieldRepo) AddOrderForTargetAndNextCases(srcID uint, targetOrder int, targetParentID uint) (err error)
- func (r *FieldRepo) CreateTreeNode(defId, targetId uint, name string, mode string) (field *model.ZdField, err error)
- func (r *FieldRepo) Get(fieldId uint) (field model.ZdField, err error)
- func (r *FieldRepo) GetChildren(defId, fieldId uint) (children []*model.ZdField, err error)
- func (r *FieldRepo) GetDefFieldTree(defId uint) (root *model.ZdField, err error)
- func (r *FieldRepo) GetMaxOrder(parentId uint) (ord int)
- func (r *FieldRepo) ListByDef(defId uint) (fields []*model.ZdField, err error)
- func (r *FieldRepo) Remove(id uint) (err error)
- func (r *FieldRepo) Save(field *model.ZdField) (err error)
- func (r *FieldRepo) SetIsRange(fieldId uint, b bool) (err error)
- func (r *FieldRepo) UpdateOrdAndParent(field model.ZdField) (err error)
- func (r *FieldRepo) UpdateRange(rang string, id uint) (err error)
- type InstancesRepo
- func (r *InstancesRepo) Create(model *model.ZdInstances) (err error)
- func (r *InstancesRepo) GenInst(po model.ZdInstances, res *domain.ResInstances)
- func (r *InstancesRepo) Get(id uint) (model model.ZdInstances, err error)
- func (r *InstancesRepo) GetItem(itemId uint) (item model.ZdInstancesItem, err error)
- func (r *InstancesRepo) GetItemTree(instancesId uint) (root model.ZdInstancesItem)
- func (r *InstancesRepo) GetItems(instancesId uint) (items []*model.ZdInstancesItem, err error)
- func (r *InstancesRepo) GetMaxOrder(instancesId int) (ord int)
- func (r *InstancesRepo) List(keywords string, page int) (models []*model.ZdInstances, total int, err error)
- func (r *InstancesRepo) ListAll() (models []*model.ZdInstances)
- func (r *InstancesRepo) Remove(id uint) (err error)
- func (r *InstancesRepo) RemoveItem(id uint) (err error)
- func (r *InstancesRepo) SaveItem(item *model.ZdInstancesItem) (err error)
- func (r *InstancesRepo) SetIsRange(id uint, b bool) (err error)
- func (r *InstancesRepo) Update(model *model.ZdInstances) (err error)
- func (r *InstancesRepo) UpdateItemRange(rang string, id uint) (err error)
- func (r *InstancesRepo) UpdateYaml(po model.ZdInstances) (err error)
- type MockRepo
- func (r *MockRepo) ChangeSampleSrc(mockId int, req model.ZdMockSampleSrc) (err error)
- func (r *MockRepo) Get(id uint) (po model.ZdMock, err error)
- func (r *MockRepo) GetByDefID(defId uint) (po model.ZdMock)
- func (r *MockRepo) GetByPath(path string) (po model.ZdMock, err error)
- func (r *MockRepo) GetSampleSrc(mockId uint, key string) (po model.ZdMockSampleSrc, err error)
- func (r *MockRepo) List(keywords string, page int) (pos []*model.ZdMock, total int, err error)
- func (r *MockRepo) ListSampleSrc(mockId int) (pos []model.ZdMockSampleSrc, err error)
- func (r *MockRepo) Remove(id uint) (err error)
- func (r *MockRepo) Save(po *model.ZdMock) (err error)
- type RangesRepo
- func (r *RangesRepo) Create(ranges *model.ZdRanges) (err error)
- func (r *RangesRepo) GenRangesRes(ranges model.ZdRanges, res *domain.ResRanges)
- func (r *RangesRepo) Get(id uint) (ranges model.ZdRanges, err error)
- func (r *RangesRepo) GetItem(itemId uint) (item model.ZdRangesItem, err error)
- func (r *RangesRepo) GetItems(rangesId int) (items []*model.ZdRangesItem, err error)
- func (r *RangesRepo) GetMaxOrder(rangesId int) (ord int)
- func (r *RangesRepo) List(keywords string, page int) (models []*model.ZdRanges, total int, err error)
- func (r *RangesRepo) ListAll() (models []*model.ZdRanges)
- func (r *RangesRepo) Remove(id uint) (err error)
- func (r *RangesRepo) RemoveItem(id uint) (err error)
- func (r *RangesRepo) SaveItem(item *model.ZdRangesItem) (err error)
- func (r *RangesRepo) Update(ranges *model.ZdRanges) (err error)
- func (r *RangesRepo) UpdateItemRange(rang string, id uint) (err error)
- func (r *RangesRepo) UpdateYaml(po model.ZdRanges) (err error)
- type ReferRepo
- func (r *ReferRepo) Create(refer *model.ZdRefer) (err error)
- func (r *ReferRepo) CreateDefault(ownerId uint, ownerType string) (err error)
- func (r *ReferRepo) GetByOwnerId(fieldId uint) (refer model.ZdRefer, err error)
- func (r *ReferRepo) GetByOwnerIdAndType(fieldId uint, ownerType string) (refer model.ZdRefer, err error)
- func (r *ReferRepo) Save(ref *model.ZdRefer) (err error)
- type SectionRepo
- func (r *SectionRepo) Create(section *model.ZdSection) (err error)
- func (r *SectionRepo) Get(id uint, ownerType string) (section model.ZdSection, err error)
- func (r *SectionRepo) List(ownerId uint, ownerType string) (sections []*model.ZdSection, err error)
- func (r *SectionRepo) Remove(id uint, ownerType string) (err error)
- func (r *SectionRepo) SaveFieldSectionToDB(typ, desc, stepStr string, count int, countTag string, ord int, fieldID uint, ...)
- func (r *SectionRepo) Update(section *model.ZdSection) (err error)
- type TextRepo
- func (r *TextRepo) Create(model *model.ZdText) (err error)
- func (r *TextRepo) Get(id uint) (model model.ZdText, err error)
- func (r *TextRepo) List(keywords string, page int) (models []*model.ZdText, total int, err error)
- func (r *TextRepo) ListAll() (models []*model.ZdText)
- func (r *TextRepo) Remove(id uint) (err error)
- func (r *TextRepo) Update(model *model.ZdText) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigRepo ¶
func NewConfigRepo ¶
func NewConfigRepo(db *gorm.DB) *ConfigRepo
func (*ConfigRepo) GenConfigRes ¶
func (r *ConfigRepo) GenConfigRes(config model.ZdConfig, res *domain.ResConfig)
func (*ConfigRepo) ListAll ¶
func (r *ConfigRepo) ListAll() (models []*model.ZdConfig)
func (*ConfigRepo) Remove ¶
func (r *ConfigRepo) Remove(id uint) (err error)
func (*ConfigRepo) UpdateConfigRange ¶
func (r *ConfigRepo) UpdateConfigRange(rang string, id uint) (err error)
func (*ConfigRepo) UpdateYaml ¶
func (r *ConfigRepo) UpdateYaml(po model.ZdConfig) (err error)
type ExcelRepo ¶
func NewExcelRepo ¶
func (*ExcelRepo) GetBySheet ¶
func (*ExcelRepo) ListSheets ¶
type FieldRepo ¶
func NewFieldRepo ¶
func (*FieldRepo) AddOrderForNextCases ¶
func (*FieldRepo) AddOrderForTargetAndNextCases ¶
func (*FieldRepo) CreateTreeNode ¶
func (*FieldRepo) GetChildren ¶
func (*FieldRepo) GetDefFieldTree ¶
func (*FieldRepo) GetMaxOrder ¶
func (*FieldRepo) UpdateOrdAndParent ¶
type InstancesRepo ¶
func NewInstancesRepo ¶
func NewInstancesRepo(db *gorm.DB) *InstancesRepo
func (*InstancesRepo) Create ¶
func (r *InstancesRepo) Create(model *model.ZdInstances) (err error)
func (*InstancesRepo) GenInst ¶
func (r *InstancesRepo) GenInst(po model.ZdInstances, res *domain.ResInstances)
func (*InstancesRepo) Get ¶
func (r *InstancesRepo) Get(id uint) (model model.ZdInstances, err error)
func (*InstancesRepo) GetItem ¶
func (r *InstancesRepo) GetItem(itemId uint) (item model.ZdInstancesItem, err error)
func (*InstancesRepo) GetItemTree ¶
func (r *InstancesRepo) GetItemTree(instancesId uint) (root model.ZdInstancesItem)
func (*InstancesRepo) GetItems ¶
func (r *InstancesRepo) GetItems(instancesId uint) (items []*model.ZdInstancesItem, err error)
func (*InstancesRepo) GetMaxOrder ¶
func (r *InstancesRepo) GetMaxOrder(instancesId int) (ord int)
func (*InstancesRepo) List ¶
func (r *InstancesRepo) List(keywords string, page int) (models []*model.ZdInstances, total int, err error)
func (*InstancesRepo) ListAll ¶
func (r *InstancesRepo) ListAll() (models []*model.ZdInstances)
func (*InstancesRepo) Remove ¶
func (r *InstancesRepo) Remove(id uint) (err error)
func (*InstancesRepo) RemoveItem ¶
func (r *InstancesRepo) RemoveItem(id uint) (err error)
func (*InstancesRepo) SaveItem ¶
func (r *InstancesRepo) SaveItem(item *model.ZdInstancesItem) (err error)
func (*InstancesRepo) SetIsRange ¶
func (r *InstancesRepo) SetIsRange(id uint, b bool) (err error)
func (*InstancesRepo) Update ¶
func (r *InstancesRepo) Update(model *model.ZdInstances) (err error)
func (*InstancesRepo) UpdateItemRange ¶
func (r *InstancesRepo) UpdateItemRange(rang string, id uint) (err error)
func (*InstancesRepo) UpdateYaml ¶
func (r *InstancesRepo) UpdateYaml(po model.ZdInstances) (err error)
type MockRepo ¶
func (*MockRepo) ChangeSampleSrc ¶
func (r *MockRepo) ChangeSampleSrc(mockId int, req model.ZdMockSampleSrc) (err error)
func (*MockRepo) GetSampleSrc ¶
func (*MockRepo) ListSampleSrc ¶
func (r *MockRepo) ListSampleSrc(mockId int) (pos []model.ZdMockSampleSrc, err error)
type RangesRepo ¶
func NewRangesRepo ¶
func NewRangesRepo(db *gorm.DB) *RangesRepo
func (*RangesRepo) GenRangesRes ¶
func (r *RangesRepo) GenRangesRes(ranges model.ZdRanges, res *domain.ResRanges)
func (*RangesRepo) GetItem ¶
func (r *RangesRepo) GetItem(itemId uint) (item model.ZdRangesItem, err error)
func (*RangesRepo) GetItems ¶
func (r *RangesRepo) GetItems(rangesId int) (items []*model.ZdRangesItem, err error)
func (*RangesRepo) GetMaxOrder ¶
func (r *RangesRepo) GetMaxOrder(rangesId int) (ord int)
func (*RangesRepo) ListAll ¶
func (r *RangesRepo) ListAll() (models []*model.ZdRanges)
func (*RangesRepo) Remove ¶
func (r *RangesRepo) Remove(id uint) (err error)
func (*RangesRepo) RemoveItem ¶
func (r *RangesRepo) RemoveItem(id uint) (err error)
func (*RangesRepo) SaveItem ¶
func (r *RangesRepo) SaveItem(item *model.ZdRangesItem) (err error)
func (*RangesRepo) UpdateItemRange ¶
func (r *RangesRepo) UpdateItemRange(rang string, id uint) (err error)
func (*RangesRepo) UpdateYaml ¶
func (r *RangesRepo) UpdateYaml(po model.ZdRanges) (err error)
type ReferRepo ¶
func NewReferRepo ¶
func (*ReferRepo) CreateDefault ¶
func (*ReferRepo) GetByOwnerId ¶
func (*ReferRepo) GetByOwnerIdAndType ¶
type SectionRepo ¶
func NewSectionRepo ¶
func NewSectionRepo(db *gorm.DB) *SectionRepo
func (*SectionRepo) SaveFieldSectionToDB ¶
Click to show internal directories.
Click to hide internal directories.