ftl.ServiceTemplate.ftl Maven / Gradle / Ivy
The newest version!
package ${config.PACKAGE_ROOT_NAME}.${config.PACKAGE_SERVICE_NAME}${config.GENERATOR_ROOT};
import ${config.PACKAGE_ROOT_NAME}.${config.PACKAGE_MODEL_NAME}${config.PACKAGE_DB_NAME}${config.GENERATOR_ROOT}.${tableProName?cap_first};
import org.springframework.stereotype.Repository;
@Repository
public interface ${tableProName?cap_first}${config.PACKAGE_SERVICE_NAME?cap_first} {
/**
* 增加
*/
${tableProName?cap_first} add(${tableProName?cap_first} ${tableProName});
/**
* 修改
*/
void update(${tableProName?cap_first} ${tableProName});
/**
* 删除
*/
void remove(${fieldPk.type} ${fieldPk.proName});
/**
* 根据ID查询
*/
${tableProName?cap_first} getBy${fieldPk.proName?cap_first}(${fieldPk.type} ${fieldPk.proName});
}