Files
youlai-boot/src/main/resources/templates/codegen/backend/service.java.vm

59 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package ${packageName}.${moduleName}.${subpackageName};
import ${packageName}.${moduleName}.model.entity.${entityName};
import ${packageName}.${moduleName}.model.form.${entityName}Form;
import ${packageName}.${moduleName}.model.query.${entityName}Query;
import ${packageName}.${moduleName}.model.vo.${entityName}VO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* $!{businessName}服务类
*
* @author ${author}
* @since ${date}
*/
public interface ${entityName}Service extends IService<${entityName}> {
/**
*$!{businessName}分页列表
*
* @return {@link IPage<${entityName}VO>} $!{businessName}分页列表
*/
IPage<${entityName}VO> get${entityName}Page(${entityName}Query queryParams);
/**
* 获取${businessName}表单数据
*
* @param id $!{businessName}ID
* @return ${businessName}表单数据
*/
${entityName}Form get${entityName}FormData(Long id);
/**
* 新增${businessName}
*
* @param formData $!{businessName}表单对象
* @return 是否新增成功
*/
boolean save${entityName}(${entityName}Form formData);
/**
* 修改${businessName}
*
* @param id $!{businessName}ID
* @param formData $!{businessName}表单对象
* @return 是否修改成功
*/
boolean update${entityName}(Long id, ${entityName}Form formData);
/**
* 删除${businessName}
*
* @param ids $!{businessName}ID多个以英文逗号(,)分割
* @return 是否删除成功
*/
boolean delete${entityName}s(String ids);
}