NM-160: Network User IP map API for operator (#3795)

* add user network ip mapping api

* fix user network ip api
This commit is contained in:
Abhishek Kondur
2025-12-20 09:36:13 +04:00
committed by GitHub
parent ea75901f8f
commit a29cbb0f31
2 changed files with 65 additions and 0 deletions
+11
View File
@@ -250,3 +250,14 @@ type UserInvite struct {
InviteCode string `json:"invite_code"`
InviteURL string `json:"invite_url"`
}
// UserMapping - user ip map with groups
type UserMapping struct {
User string `json:"user"`
Groups []string `json:"groups"`
}
// UserIPMap maintains the mapping of IP addresses to users and groups
type UserIPMap struct {
Mappings map[string]UserMapping `json:"mappings"`
}