From d81cfb99d649ce295ff38f259a99d423084e1107 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 11 Apr 2024 15:39:43 +0800 Subject: [PATCH] Optimize Docker configuration and script. --- config/share.yml | 4 +--- pkg/common/config/config.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/share.yml b/config/share.yml index 1d709ccfb..2abbb77a0 100644 --- a/config/share.yml +++ b/config/share.yml @@ -10,8 +10,6 @@ rpcRegisterName: auth: auth conversation: conversation third: third -imAdmin: - userID: [ "imAdmin" ] - nickname: [ "imAdmin" ] +imAdminUserID: [ "imAdmin" ] diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index 80edca456..c6ad00a3d 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -349,7 +349,7 @@ type Share struct { Secret string `mapstructure:"secret"` Env string `mapstructure:"env"` RpcRegisterName RpcRegisterName `mapstructure:"rpcRegisterName"` - IMAdmin IMAdmin `mapstructure:"imAdmin"` + IMAdminUserID []string `mapstructure:"imAdminUserID"` } type RpcRegisterName struct { User string `mapstructure:"user"`