package com.fkzy.warn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fkzy.warn.model.Contract;
import com.fkzy.warn.common.request.RequestParameter;
import com.fkzy.warn.common.response.ApiResponse;

import java.util.List;

/**
 * @author zhangjing
 * @date 2023/10/16 18:17
 * @description
 */
public interface ContractService extends IService<Contract> {

    /**
     * 保存
     * @param entity
     * @return
     */
    ApiResponse saveModel(Contract entity,String ticket);

    /**
     * 修改
     * @param entity
     * @return
     */
    ApiResponse updateModel(Contract entity,String ticket);

    /**
     * 删除
     * @param ids
     * @return
     */
    ApiResponse deleteModel(List<String> ids);

    /**
     * 分页查询
     * @param parameter
     * @return
     */
    Page<Contract> queryPage(RequestParameter parameter);



}
