diff --git a/docs/05-5GC OMC restful intefaces v1.01.pdf b/docs/05-5GC OMC restful intefaces v1.01.pdf new file mode 100644 index 0000000..dee29f2 Binary files /dev/null and b/docs/05-5GC OMC restful intefaces v1.01.pdf differ diff --git a/docs/05-5GC OMC restful intefaces.md b/docs/05-5GC OMC restful intefaces.md index 6bc482e..5c60d88 100644 --- a/docs/05-5GC OMC restful intefaces.md +++ b/docs/05-5GC OMC restful intefaces.md @@ -1769,6 +1769,66 @@ Example: } ``` +### 10.6 N3IWF在线用户信息 + +#### 10.6.1 查询N3IWF在线用户信息 + +说明:为了避免在线用户太多,N3IWF可做限制,如返回不超过100条 + +* Uri + + ```uri + /api/rest/ueManagement/v1/elementType/n3iwf/objectType/ueInfo?imsi={imsi}&msisdn={msisdn}&neId={neId} + ``` +* Relations + + OMC -> IMS +* Params + + * OMC-FE -> OMC-BE, neId={neId}, 指定IMS的neId + * OMC -> IMS, imsi={imsi} ,可选,如果都不指定,则查询全部ueInfo +* Method + + GET +* Body + + NA +* Return + +```json +// N3iwfUEInfo N3IWF在线用户信息 +type N3iwfUEInfo struct { + IMSI string `json:"imsi"` + + NAI string `json:"nai"` + RegState int `json:"regState"` + Activetime string `json:"activeTime"` +} + +type N3iwfUEData struct { + Data []N3iwfUEInfo `json:"data"` +} +``` + +```json +{ + "data": [ + { + "imsi": "460000100000010", + "nai": "", + "regState": 1, + "activeTime": "2023-07-11 18:26:46" + }, + { + "imsi": "460000100000011", + "nai": "", + "regState": 1, + "activeTime": "2023-07-11 18:26:46" + } + ] +} +``` + ## 11 系统管理 ### 11.1 OMC系统 diff --git a/docs/07-5GC OMC Database Diagrams v0.41.pdf b/docs/07-5GC OMC Database Diagrams v0.41.pdf new file mode 100644 index 0000000..91d7a53 Binary files /dev/null and b/docs/07-5GC OMC Database Diagrams v0.41.pdf differ diff --git a/docs/07-5GC OMC Database Diagrams.md b/docs/07-5GC OMC Database Diagrams.md index 692b232..8bf702e 100644 --- a/docs/07-5GC OMC Database Diagrams.md +++ b/docs/07-5GC OMC Database Diagrams.md @@ -1,18 +1,7 @@ -## EMS Database +## EMS Database --- +### 1. Diagram of OMC database - -### 1. Relationship of menu, account, account_menu, title_info - - -![1679033737734](image/database/1679033737734.png) - -通过多表联合查询可一次性获取某个账号的目录结果: - -example, acouunt name='manager', lang-key='cn': - -```sql -SELECT m.id, json_unquote(json_extract(t.title_json, '$.en')) as title, m.parent_id, m.sort_id FROM title_info t, menu m WHERE m.id IN (SELECT am.menu_id FROM account_menu am WHERE am.account_id = (SELECT id FROM account WHERE name='manager')) AND m.title_id = t.id ORDER BY m.id -``` +![1700190137798](image/07-5GCOMCDatabaseDiagrams/1700190137798.png) diff --git a/docs/image/07-5GCOMCDatabaseDiagrams/1700190137798.png b/docs/image/07-5GCOMCDatabaseDiagrams/1700190137798.png new file mode 100644 index 0000000..fedbe03 Binary files /dev/null and b/docs/image/07-5GCOMCDatabaseDiagrams/1700190137798.png differ diff --git a/docs/omc_db.jpg b/docs/omc_db.jpg new file mode 100644 index 0000000..fedbe03 Binary files /dev/null and b/docs/omc_db.jpg differ