dao

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

*

  • This file is auto generated by tto v0.4.5 !
  • If you want to modify this code, please read the guide
  • to modify code template. *
  • Get started: https://github.com/ixre/tto *
  • Copyright (C) 2021 56X.NET, All rights reserved. *
  • name : portal_nav_dao.go
  • author : jarrysix
  • date : 2021/12/12 09:09:36
  • description :
  • history :

*

  • This file is auto generated by tto v0.4.5 !
  • If you want to modify this code, please read the guide
  • to modify code template. *
  • Get started: https://github.com/ixre/tto *
  • Copyright (C) 2021 <no value>, All rights reserved. *
  • name : comm_qr_template_dao.go
  • author : jarrysix
  • date : 2021/12/02 10:37:45
  • description :
  • history :

*

  • This file is auto generated by tto v0.4.5 !
  • If you want to modify this code, please read the guide
  • to modify code template. *
  • Get started: https://github.com/ixre/tto *
  • Copyright (C) 2022 56X.NET, All rights reserved. *
  • name : sys_search_word_dao.go
  • author : jarrysix
  • date : 2022/01/05 10:13:57
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAppProdDao

type IAppProdDao interface {
	// auto generate by gof
	// Get APP产品
	Get(primary interface{}) *model.AppProd
	// GetBy APP产品
	GetBy(where string, v ...interface{}) *model.AppProd
	// Count APP版本 by condition
	Count(where string, v ...interface{}) (int, error)
	// Select APP产品
	Select(where string, v ...interface{}) []*model.AppProd
	// Save APP产品
	Save(v *model.AppProd) (int, error)
	// Delete APP产品
	Delete(primary interface{}) error
	// Batch Delete APP产品
	BatchDelete(where string, v ...interface{}) (int64, error)

	// Get APP版本
	GetVersion(primary interface{}) *model.AppVersion

	// Count APP版本 by condition
	CountVersion(where string, v ...interface{}) (int, error)
	// GetBy APP版本
	GetVersionBy(where string, v ...interface{}) *model.AppVersion
	// Select APP版本
	SelectVersion(where string, v ...interface{}) []*model.AppVersion
	// Save APP版本
	SaveVersion(v *model.AppVersion) (int, error)
	// Delete APP版本
	DeleteVersion(primary interface{}) error
	// Batch Delete APP版本
	BatchDeleteVersion(where string, v ...interface{}) (int64, error)
}

type ICommQrTemplateDao

type ICommQrTemplateDao interface {
	GetQrTemplates() []*model.QrTemplate
	GetQrTemplate(id int64) *model.QrTemplate
	SaveQrTemplate(q *model.QrTemplate) (int64, error)
	DeleteQrTemplate(id int64) error
}

type IPortalDao

type IPortalDao interface {
	// Get 门户导航
	GetNav(primary interface{}) *model.PortalNav
	// GetBy 门户导航
	GetNavBy(where string, v ...interface{}) *model.PortalNav
	// Count 门户导航 by condition
	CountNav(where string, v ...interface{}) (int, error)
	// Select 门户导航
	SelectNav(where string, v ...interface{}) []*model.PortalNav
	// Save 门户导航
	SaveNav(v *model.PortalNav) (int, error)
	// Delete 门户导航
	DeleteNav(primary interface{}) error
	// Batch Delete 门户导航
	BatchDeleteNav(where string, v ...interface{}) (int64, error)

	// Get 导航分组
	GetNavGroup(primary interface{}) *model.NavGroup
	// Select 导航分组
	SelectNavGroup(where string, v ...interface{}) []*model.NavGroup
	// Save 导航分组
	SaveNavGroup(v *model.NavGroup) (int, error)
	// Delete 导航分组
	DeleteNavGroup(primary interface{}) error
}

type IRbacDao

type IRbacDao interface {
	// auto generate by gof
	// Get 部门
	GetPermDept(primary interface{}) *model.PermDept
	// GetBy 部门
	GetPermDeptBy(where string, v ...interface{}) *model.PermDept
	// Count 部门 by condition
	CountPermDept(where string, v ...interface{}) (int, error)
	// Select 部门
	SelectPermDept(where string, v ...interface{}) []*model.PermDept
	// Save 部门
	SavePermDept(v *model.PermDept) (int, error)
	// Delete 部门
	DeletePermDept(primary interface{}) error
	// Batch Delete 部门
	BatchDeletePermDept(where string, v ...interface{}) (int64, error)

	// Get 岗位
	GetPermJob(primary interface{}) *model.PermJob
	// GetBy 岗位
	GetPermJobBy(where string, v ...interface{}) *model.PermJob
	// Count 岗位 by condition
	CountPermJob(where string, v ...interface{}) (int, error)
	// Select 岗位
	SelectPermJob(where string, v ...interface{}) []*model.PermJob
	// Save 岗位
	SavePermJob(v *model.PermJob) (int, error)
	// Delete 岗位
	DeletePermJob(primary interface{}) error
	// Batch Delete 岗位
	BatchDeletePermJob(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermJob(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// Get 系统用户
	GetPermUser(primary interface{}) *model.PermUser
	// GetBy 系统用户
	GetPermUserBy(where string, v ...interface{}) *model.PermUser
	// Count 系统用户 by condition
	CountPermUser(where string, v ...interface{}) (int, error)
	// Select 系统用户
	SelectPermUser(where string, v ...interface{}) []*model.PermUser
	// Save 系统用户
	SavePermUser(v *model.PermUser) (int, error)
	// Delete 系统用户
	DeletePermUser(primary interface{}) error
	// Batch Delete 系统用户
	BatchDeletePermUser(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermUser(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// Get 角色
	GetPermRole(primary interface{}) *model.PermRole
	// GetBy 角色
	GetPermRoleBy(where string, v ...interface{}) *model.PermRole
	// Count 角色 by condition
	CountPermRole(where string, v ...interface{}) (int, error)
	// Select 角色
	SelectPermRole(where string, v ...interface{}) []*model.PermRole
	// Save 角色
	SavePermRole(v *model.PermRole) (int, error)
	// Delete 角色
	DeletePermRole(primary interface{}) error
	// Batch Delete 角色
	BatchDeletePermRole(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermRole(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// Get PermRes
	GetPermRes(primary interface{}) *model.PermRes
	// GetBy PermRes
	GetPermResBy(where string, v ...interface{}) *model.PermRes
	// Count PermRes by condition
	CountPermRes(where string, v ...interface{}) (int, error)
	// Select PermRes
	SelectPermRes(where string, v ...interface{}) []*model.PermRes
	// 获取最大的排列序号
	GetMaxResourceSortNum(parentId int) int
	// Save PermRes
	SavePermRes(v *model.PermRes) (int, error)
	// Delete PermRes
	DeletePermRes(primary interface{}) error
	// Batch Delete PermRes
	BatchDeletePermRes(where string, v ...interface{}) (int64, error)

	// Get 用户角色关联
	GetPermUserRole(primary interface{}) *model.PermUserRole
	// GetBy 用户角色关联
	GetPermUserRoleBy(where string, v ...interface{}) *model.PermUserRole
	// Count 用户角色关联 by condition
	CountPermUserRole(where string, v ...interface{}) (int, error)
	// Select 用户角色关联
	SelectPermUserRole(where string, v ...interface{}) []*model.PermUserRole
	// Save 用户角色关联
	SavePermUserRole(v *model.PermUserRole) (int, error)
	// Delete 用户角色关联
	DeletePermUserRole(primary interface{}) error
	// Batch Delete 用户角色关联
	BatchDeletePermUserRole(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermUserRole(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// Get 角色部门关联
	GetPermRoleDept(primary interface{}) *model.PermRoleDept
	// GetBy 角色部门关联
	GetPermRoleDeptBy(where string, v ...interface{}) *model.PermRoleDept
	// Count 角色部门关联 by condition
	CountPermRoleDept(where string, v ...interface{}) (int, error)
	// Select 角色部门关联
	SelectPermRoleDept(where string, v ...interface{}) []*model.PermRoleDept
	// Save 角色部门关联
	SavePermRoleDept(v *model.PermRoleDept) (int, error)
	// Delete 角色部门关联
	DeletePermRoleDept(primary interface{}) error
	// Batch Delete 角色部门关联
	BatchDeletePermRoleDept(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermRoleDept(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// Get 角色菜单关联
	GetPermRoleRes(primary interface{}) *model.PermRoleRes
	// GetBy 角色菜单关联
	GetPermRoleResBy(where string, v ...interface{}) *model.PermRoleRes
	// Count 角色菜单关联 by condition
	CountPermRoleRes(where string, v ...interface{}) (int, error)
	// Select 角色菜单关联
	SelectPermRoleRes(where string, v ...interface{}) []*model.PermRoleRes
	// Save 角色菜单关联
	SavePermRoleRes(v *model.PermRoleRes) (int, error)
	// Delete 角色菜单关联
	DeletePermRoleRes(primary interface{}) error
	// Batch Delete 角色菜单关联
	BatchDeletePermRoleRes(where string, v ...interface{}) (int64, error)
	// Params paging data
	PagingQueryPermRoleRes(begin, end int, where, orderBy string) (total int, rows []map[string]interface{})

	// 获取角色关联的资源列表
	GetRoleResList(roleId int64) []int64
	// 获取用户的角色
	GetUserRoles(id int64) []*model.PermUserRole
	// 获取角色关联系
	GetRoleResources(roles []int) []*model.PermRes
}

type ISysSearchWordDao added in v0.4.4

type ISysSearchWordDao interface {
	// GetSearchWord Get 热搜词
	GetSearchWord(primary interface{}) *model.SearchWord
	// GetSearchWordBy GetBy 热搜词
	GetSearchWordBy(where string, v ...interface{}) *model.SearchWord
	// CountSearchWord Count 热搜词 by condition
	CountSearchWord(where string, v ...interface{}) (int, error)
	// SelectSearchWord Select 热搜词
	SelectSearchWord(where string, v ...interface{}) []*model.SearchWord
	// SaveSearchWord Save 热搜词
	SaveSearchWord(v *model.SearchWord) (int, error)
	// DeleteSearchWord Delete 热搜词
	DeleteSearchWord(primary interface{}) error
	// BatchDeleteSearchWord Batch Delete 热搜词
	BatchDeleteSearchWord(where string, v ...interface{}) (int64, error)
}

Directories

Path Synopsis
*
*

Jump to

Keyboard shortcuts

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