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