Skip to content

Get user group information

Get basic information about the group of logged-in users (mainly ID and name), and if it is UI, can be used to build tree node information

API info

Url: /basic_api/v1/org/get_user_org

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

None

Response Data (type:array)

fieldtypedesc
orgGuidintegerGroup ID
orgNamestringGroup name
sortIDintegersort sequence number
parentGuidintegerParent node ID

Example

Request example

url
http://localhost:8080/basic_api/v1/org/get_user_org&_t=1698998015041
http://localhost:8080/basic_api/v1/org/get_user_org&_t=1698998015041

Response example

json
{
  "hdr": {
    "code": 200,
    "message": "success"
  },
  "data": [{
    "orgGuid":1,
    "orgName":"test",
    "sortID":1,
    "parentGuid":0
  }]
}
{
  "hdr": {
    "code": 200,
    "message": "success"
  },
  "data": [{
    "orgGuid":1,
    "orgName":"test",
    "sortID":1,
    "parentGuid":0
  }]
}