-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathI18nEntryService.java
More file actions
134 lines (118 loc) · 3.7 KB
/
I18nEntryService.java
File metadata and controls
134 lines (118 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
package com.tinyengine.it.service.app;
import com.tinyengine.it.common.base.Result;
import com.tinyengine.it.model.dto.DeleteI18nEntry;
import com.tinyengine.it.model.dto.FileResult;
import com.tinyengine.it.model.dto.I18nEntryDto;
import com.tinyengine.it.model.dto.I18nEntryListResult;
import com.tinyengine.it.model.dto.OperateI18nBatchEntries;
import com.tinyengine.it.model.dto.OperateI18nEntries;
import com.tinyengine.it.model.dto.SchemaI18n;
import com.tinyengine.it.model.entity.I18nEntry;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
* The interface 18 n entry service.
*
* @since 2024-10-20
*/
public interface I18nEntryService {
/**
* 查询表t_i18n_entry所有信息
*
* @return the 18 n entry list result
*/
I18nEntryListResult findAllI18nEntry();
/**
* 根据主键id查询表t_i18n_entry信息
*
* @param id the id
* @return the 18 n entry
*/
I18nEntryDto findI18nEntryById(@Param("id") Integer id);
/**
* 根据条件查询表t_i18n_entry信息
*
* @param i18nEntry the 18 n entry
* @return the list
*/
List<I18nEntryDto> findI18nEntryByCondition(I18nEntry i18nEntry);
/**
* 根据主键id更新表t_i18n_entry信息
*
* @param i18nEntry the 18 n entry
* @return the integer
*/
Integer updateI18nEntryById(I18nEntry i18nEntry);
/**
* 格式化词条列表
*
* @param i18nEntriesList the 18 n entries list
* @return map
*/
SchemaI18n formatEntriesList(List<I18nEntryDto> i18nEntriesList);
/**
* 创建多词条国际化
*
* @param operateI18nEntries the operate i 18 n entries
* @return list
*/
List<I18nEntry> create(OperateI18nEntries operateI18nEntries);
/**
* 批量创建
*
* @param operateI18nBatchEntries the operate i 18 n batch entries
* @return list
*/
List<I18nEntry> bulkCreate(OperateI18nBatchEntries operateI18nBatchEntries);
/**
* 批量更新
*
* @param operateI18nEntries the operate i 18 n entries
* @return list
*/
List<I18nEntry> bulkUpdate(OperateI18nEntries operateI18nEntries);
/**
* Delete i 18 n entries by host and host type and key list.
*
* @param deleteI18nEntry the deleteI18nEntry
* @return the list
*/
List<I18nEntryDto> deleteI18nEntriesByHostAndHostTypeAndKey(DeleteI18nEntry deleteI18nEntry);
/**
* 上传单个文件
*
* @param file the file
* @param host the host
* @return the result
* @throws Exception the exception
*/
Result<FileResult> readSingleFileAndBulkCreate(MultipartFile file, int host) throws Exception;
/**
* 批量上传词条数据
*
* @param lang the lang
* @param file the file
* @param host the host
* @return the result
* @throws Exception the exception
*/
Result<FileResult> readFilesAndbulkCreate(String lang, MultipartFile file, int host) throws Exception;
/**
* 通过app查询表t_i18n_entry所有信息
*
* @return the 18 n entry list result
*/
I18nEntryListResult findI18nEntryByApp(Integer host, String hostType);
}