You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
package com.example.demo.service.coin;
|
|
|
|
import com.example.demo.domain.entity.Translation;
|
|
|
|
import java.util.List;
|
|
|
|
public interface TranslationService {
|
|
// 查询所有翻译记录
|
|
List<Translation> findAll();
|
|
|
|
// 添加新的翻译记录
|
|
boolean add(Translation translation);
|
|
|
|
// 更新翻译记录
|
|
boolean update(Translation translation);
|
|
|
|
// 删除翻译记录
|
|
boolean deleteById(Integer id);
|
|
|
|
// 根据部分中文简体内容模糊查询翻译记录
|
|
List<Translation> findByChineseSimplifiedLike(String chineseSimplified);
|
|
|
|
// 根据中文简体内容精确查询翻译记录
|
|
Translation findByChineseSimplified(String chineseSimplified);
|
|
|
|
// 根据语言和翻译状态查询翻译记录
|
|
List<Translation> findByLanguageAndTranslationStatus(String language, boolean isTranslated);
|
|
|
|
List<Translation> findByChineseSimplifiedAndLanguageStatus(
|
|
String chineseSimplified,
|
|
String language,
|
|
boolean isTranslated
|
|
);
|
|
|
|
Translation findById(Integer id);
|
|
}
|