Skip to content

Code Messages

  • Endpoint Path: /api/v2/global/code-messages
  • Method: GET
  • Request: Query

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionaloptional
X-Fresns-Aid-Tokenoptionaloptional
X-Fresns-Uidoptionaloptional
X-Fresns-Uid-Tokenoptionaloptional

Query Params

Parameter NameTypeRequiredDescription
fskeyStringoptionalStatus code fskey, leave empty to use the default Fresns
isAllBooleanoptionalWhether to output all fskey results
codesStringoptionalStatus code number, separated by English commas for multiple codes

Request Description

  • This interface queries the Message information of the status code, which comes from the data table code_messages.
  • Either isAll or codes should be passed as a parameter.
  • It can be used to display multi-language prompt information on the view interface, and can be used in conjunction with the language pack.

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "code": "message",
        "30000": "Parameter error",
    }
}

Released under the Apache-2.0 License