Interface Address

https://api.example.com/omstation/login/userLogin

During the development process, please replace api.example.com with the domain name or IP address of your own server.

Request Method

  • Post

Request Headers

  • Content-Type: application/json

Request Parameters

Parameter Example

{
    "userName":"admin",
    "password":"e10adc3949ba59abbe56e057f20f883e"
}

Parameter Description

Field Type Description Required
userName String User name Y
password String Password (after 32 - bit MD5 encryption of the plaintext password) Y

Return Result

Result Example

{
    "code": 200,
    "message": "Operation succeeded",
    "data": {
        "tokenId": "A334853698EF49DC98A1C8BA65149351",
        "userId": "620FF63E384345F4935BF6A1B9095A7B",
        "orgId": "520FF63E384345F4935BF6A1B9095A7B",
        "orgName": "Jiutong IoT",
        "timeDiff": 28800,
        "loginTime": "2024-02-28T01:10:56.979Z",
        "loginTimestamp": 1709082656979,
        "logoUrl": null,
        "defaultMenu": null,
        "dateFormat": "yyyy-MM-dd",
        "defaultMap": 1,
        "webTheme": "rgba(132, 15, 48, 1)",
        "adminCode": "ru+IU7pmWpCzW33Wk+J8pKbz79Ml3wPEOX5YoA/7d7AEEujflAIWyA2xXm7lgJQN",
        "moduleStyle": 0
    }
}

Result Description

Field Type Description
code int Status code, see “Status Code Description” for details
message String Request status description
data object Return result content

Data Description

Field Type Description
tokenId String Identity verification token, which needs to be added to the request headers of subsequent API requests
userId String The unique identifier of the user in the system
orgId String The unique identifier of the organization to which the user belongs in the system
orgName String Organization name
timeDiff int Time difference, unit: s
loginTime String The current login time of the user in the system, UTC
loginTimestamp long The current login time of the user in the system, millisecond timestamp
logoUrl String Company’s Logo URL
defaultMenu String Default page, to be expanded later
dateFormat String Time format
defaultMap int Default map
webTheme String Theme color, to be expanded later
moduleStyle int Navigation style, to be expanded later
adminCode String Administrator code
文档更新时间: 2025-07-23 09:30   作者:admin