|
- // Copyright © 2023 OpenIMSDK open source community. All rights reserved.
- // Licensed under the MIT License (the "License");
- // you may not use this file except in compliance with the License.
-
- package e
-
- var Msg = map[int]string{
- SUCCESS: "success",
- ERROR: "error",
- INVALID_PARAMS: "request params error",
- }
-
- func GetMsg(code int) string {
- msg, ok := Msg[code]
- if ok {
- return msg
- }
-
- return Msg[ERROR]
- }
|