Service

  • 请在注释中说明用途/作者/创建日期
  • 以下为CRUD的常规写法
  • 方法需要在XXXImpl中实现
package com.frame.easy.modular.sample.service;

import com.frame.easy.modular.sample.model.SampleGeneral;
import com.frame.easy.common.page.Page;

/**
 * 代码生成示例
 *
 * @author TengChong
 * @date 2019-04-09
 */
public interface SampleGeneralService {
    /**
     * 列表
     * @param object 查询条件
     * @return page
     */
    Page select(SampleGeneral object);

    /**
     * 详情
     *
     * @param id id
     * @return 详细信息
     */
    SampleGeneral input(String id);
    /**
     * 新增
     *
     * @return 默认值
     */
    SampleGeneral add();
    /**
     * 删除
     *
     * @param ids 数据ids
     * @return true/false
     */
    boolean delete(String ids);
    /**
     * 保存
     *
     * @param object 表单内容
     * @return 保存后信息
     */
    SampleGeneral saveData(SampleGeneral object);
}