分页
GET
/sys-i18n/page
请求参数
Query 参数
current
string
页码
示例值:
1
pageSize
integer
页大小
示例值:
20
code
string
可选
zh
string
可选
en
string
可选
Header 参数
Authorization
string
可选
示例值:
Bearer {{pc_token}}
Accept-Language
string
可选
默认值:
en-US
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://k28hrq.natappfree.cc/arbitrage/sys-i18n/page?current=1&pageSize=20&code=&zh&en' \
--header 'Authorization: Bearer {{pc_token}}' \
--header 'Authorization;' \
--header 'Accept-Language: en-US'
返回响应
🟢200成功
application/json
Body
data
object
必需
total
integer
必需
list
array[object (国际化信息) {4}]
必需
error
null
必需
示例
{
"data": {
"total": 391,
"list": [
{
"id": 1,
"code": "error.system",
"zh": "系统异常,请稍后再试",
"en": "System exception, please try again later"
},
{
"id": 2,
"code": "error.server",
"zh": "系统繁忙,请稍后再试",
"en": "System busy, please try again later"
},
{
"id": 3,
"code": "error.login.invalid.token",
"zh": "请登录",
"en": "Please log in"
},
{
"id": 4,
"code": "error.login.time.out",
"zh": "登录状态已过期,请重新登录",
"en": "Login status has expired, please log in again"
},
{
"id": 5,
"code": "error.no.access",
"zh": "无权访问",
"en": "No access rights"
},
{
"id": 6,
"code": "error.args",
"zh": "请求参数不符",
"en": "Request parameters do not match"
},
{
"id": 7,
"code": "error.max.upload.size",
"zh": "上传超过文件大小限制",
"en": "Upload exceeds file size limit"
},
{
"id": 8,
"code": "error.not.found",
"zh": "资源未找到",
"en": "Resource not found"
},
{
"id": 9,
"code": "error.query",
"zh": "查询失败",
"en": "Query failed"
},
{
"id": 10,
"code": "error.save",
"zh": "保存失败",
"en": "Save failed"
},
{
"id": 11,
"code": "error.add",
"zh": "新增失败",
"en": "Add failed"
},
{
"id": 12,
"code": "error.update",
"zh": "更新失败",
"en": "Update failed"
},
{
"id": 13,
"code": "error.delete",
"zh": "删除失败",
"en": "Delete failed"
},
{
"id": 14,
"code": "error.verify",
"zh": "校验失败",
"en": "Verification failed"
},
{
"id": 15,
"code": "error.download",
"zh": "下载失败",
"en": "Download failed"
},
{
"id": 16,
"code": "error.upload",
"zh": "上传失败",
"en": "Upload failed"
},
{
"id": 17,
"code": "error.export.empty",
"zh": "导出数据不能为空",
"en": "Export data cannot be empty"
},
{
"id": 18,
"code": "login.name.password.invalid",
"zh": "用户名或者密码错误,请确认",
"en": "Invalid username or password, please confirm"
},
{
"id": 19,
"code": "redis.key.exists",
"zh": "key已存在,请确认",
"en": "Key already exists, please confirm"
},
{
"id": 20,
"code": "redis.key.invalid",
"zh": "key已失效,请确认",
"en": "Key is invalid, please confirm"
}
]
},
"error": null
}
修改于 2024-11-15 14:13:21