import { BaseMapper } from './BaseMapper'; import { ThatAxiosResponse } from '../type'; /** * RestFulMapper RestFul风格的Mapper基类 * @param T 实体类型 * @param [ID] {number} 索引类型 * @param [R] {any} 返回值类型(除联结类型外,一般与实体类型一致) */ export declare class RestFulMapper extends BaseMapper { /** * 根据索引获取 * @param id 索引 */ findById(id: ID): Promise>; /** * 根据条件获取列表 * @param entity 条件实体 */ findAll(entity?: Partial): Promise>; /** * 保存 * @param entity 创建实体 */ save(entity: T): Promise>; /** * 更新 * @param entity 更新实体 */ update(entity: T): Promise>; /** * 删除 * @param id 索引 */ delete(id: ID): Promise>; }