5. 语言管理

5.1. 新增语言

Type: POST

Author: xezzon

Content-Type: application/json

Description: 新增语言

Body-parameters:

Parameter Type Description Required Since

languageTag

string

语言标签

false

-

description

string

语言描述

false

-

ordinal

int32

排序

false

-

enabled

boolean

是否启用

false

-

Request-example:

curl -X POST -H "Content-Type: application/json" -i 'http://127.0.0.1/language' --data '{
  "languageTag": "",
  "description": "",
  "ordinal": 0,
  "enabled": true
}'

Response-fields:

Field Type Description Since

id

string

No comments found.

-

Response-example:

{
  "id": ""
}

5.2. 查询语言列表

Type: GET

Author: xezzon

Content-Type: application/x-www-form-urlencoded

Description: 查询语言列表

Request-example:

curl -X GET -i 'http://127.0.0.1/language'

Response-fields:

Field Type Description Since

id

string

No comments found.

-

dictTag

string

字典目

-

languageTag

string

语言标签

-

description

string

语言描述

-

ordinal

int32

排序号 数值越小,顺序越靠前。

-

parentId

string

字典上级ID

-

enabled

boolean

启用状态

-

editable

boolean

是否可编辑,固定为true

-

Response-example:

[
  {
    "id": "",
    "dictTag": "",
    "languageTag": "",
    "description": "",
    "ordinal": 0,
    "parentId": "",
    "enabled": true,
    "editable": true
  }
]

5.3. 更新语言

Type: PUT

Author: xezzon

Content-Type: application/json

Description: 更新语言

Body-parameters:

Parameter Type Description Required Since

id

string

No comments found.

false

-

languageTag

string

语言标签

false

-

description

string

语言描述

false

-

ordinal

int32

排序序号

false

-

enabled

boolean

是否启用

false

-

Request-example:

curl -X PUT -H "Content-Type: application/json" -i 'http://127.0.0.1/language' --data '{
  "id": "",
  "languageTag": "",
  "description": "",
  "ordinal": 0,
  "enabled": true
}'

Response-example:

Return void.

5.4. 删除语言

Type: DELETE

Author: xezzon

Content-Type: application/x-www-form-urlencoded

Description: 删除语言

Path-parameters:

Parameter Type Description Required Since

id

string

语言ID

true

-

Request-example:

curl -X DELETE -i 'http://127.0.0.1/language/{id}'

Response-example:

Return void.