|
|
- // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
-
- package base
-
- import (
- "LAPP_GAAS_GFrame_BACKEND/dao/base/implments"
- "LAPP_GAAS_GFrame_BACKEND/grmi"
- model "LAPP_GAAS_GFrame_BACKEND/models/base"
- "github.com/go-xorm/xorm"
- )
-
- /******************************************************************************
- *
- * @Interface Name : RoleRelDAO
- *-----------------------------------------------------------------------------
- *
- * @Description : RoleRel的数据访问对象接口
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- type RoleRelDAO interface {
- /******************************************************************************
- *
- * @Function Name : InsertOne
- *-----------------------------------------------------------------------------
- *
- * @Description : 插入一条RoleRel
- *
- * @Function Parameters : 需要插入的RoleRel
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- InsertOne(*model.RoleRel) error
- /******************************************************************************
- *
- * @Function Name : DeleteOne
- *-----------------------------------------------------------------------------
- *
- * @Description : 删除指定键的RoleRel
- *
- * @Function Parameters : 主键
- *
- * @Function Parameters : 主键
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- DeleteOne(int, string) error
- /******************************************************************************
- *
- * @Function Name : SelectOne
- *-----------------------------------------------------------------------------
- *
- * @Description : 查找指定键的RoleRel
- *
- * @Function Parameters : 主键
- *
- * @Function Parameters : 主键
- *
- * @Return Value : 查找到的RoleRel
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- SelectOne(int, string) (*model.RoleRel, error)
- /******************************************************************************
- *
- * @Function Name : UpdateOne
- *-----------------------------------------------------------------------------
- *
- * @Description : 修改RoleRel
- *
- * @Function Parameters : 需要修改的RoleRel
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- UpdateOne(*model.RoleRel) error
- /******************************************************************************
- *
- * @Function Name : Insert
- *-----------------------------------------------------------------------------
- *
- * @Description : 插入多条RoleRel
- *
- * @Function Parameters : 需要插入的RoleRel列表
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- Insert(*[]model.RoleRel) error
- /******************************************************************************
- *
- * @Function Name : Delete
- *-----------------------------------------------------------------------------
- *
- * @Description : 删除多条RoleRel
- *
- * @Function Parameters : 需要删除的RoleRel列表
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- Delete(*[]model.RoleRel) error
- /******************************************************************************
- *
- * @Function Name : DeleteWhere
- *-----------------------------------------------------------------------------
- *
- * @Description : 按条件删除RoleRel
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- DeleteWhere([]grmi.Predicate) error
- /******************************************************************************
- *
- * @Function Name : Select
- *-----------------------------------------------------------------------------
- *
- * @Description : 按条件查询RoleRel
- *
- * @Function Parameters : 查询条件
- *
- * @Function Parameters : 排序字段
- *
- * @Return Value : 查询结果
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- Select([]grmi.Predicate, []grmi.Field) ([]model.RoleRel, error)
- /******************************************************************************
- *
- * @Function Name : SelectAndPaging
- *-----------------------------------------------------------------------------
- *
- * @Description : 按条件查询RoleRel并分页
- *
- * @Function Parameters : 分页信息
- *
- * @Function Parameters : 查询条件
- *
- * @Function Parameters : 排序字段
- *
- * @Return Value : 查询结果
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
- /******************************************************************************
- *
- * @Function Name : Update
- *-----------------------------------------------------------------------------
- *
- * @Description : 修改多条RoleRel
- *
- * @Function Parameters : 需要修改的RoleRel列表
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- Update(*[]model.RoleRel) error
- /******************************************************************************
- *
- * @Function Name : UpdateWhere
- *-----------------------------------------------------------------------------
- *
- * @Description : 按条件修改RoleRel
- *
- * @Return Value : 执行时发生的错误
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- UpdateWhere([]grmi.Predicate, *model.RoleRel, ...string) error
- }
-
- /******************************************************************************
- *
- * @Function Name : NewRoleRelDAO
- *-----------------------------------------------------------------------------
- *
- * @Description : 创建一个RoleRelDAO实例
- *
- * @Function Parameters : xorm会话
- *
- * @Function Parameters : 基本主键
- *
- * @Return Value : RoleRelDAO实例
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-07-21 10:36:05
- *
- ******************************************************************************/
- func NewRoleRelDAO(session *xorm.Session, plantNr int, userid string) RoleRelDAO {
- return implments.NewRoleRelDAOImplement(session, plantNr, userid)
- }
|