forked from JointCloud/pcm-coordinator
31 lines
907 B
Go
31 lines
907 B
Go
/*
|
|
|
|
Copyright (c) [2023] [pcm]
|
|
[pcm-coordinator] is licensed under Mulan PSL v2.
|
|
You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
You may obtain a copy of Mulan PSL v2 at:
|
|
http://license.coscl.org.cn/MulanPSL2
|
|
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
EITHER EXPaRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
See the Mulan PSL v2 for more details.
|
|
|
|
*/
|
|
|
|
package xerr
|
|
|
|
// 成功返回
|
|
const OK uint32 = 200
|
|
|
|
/**(前3位代表业务,后三位代表具体功能)**/
|
|
|
|
// 全局错误码
|
|
const SERVER_COMMON_ERROR uint32 = 100001
|
|
const REUQEST_PARAM_ERROR uint32 = 100002
|
|
const TOKEN_EXPIRE_ERROR uint32 = 100003
|
|
const TOKEN_GENERATE_ERROR uint32 = 100004
|
|
const DB_ERROR uint32 = 100005
|
|
const DB_UPDATE_AFFECTED_ZERO_ERROR uint32 = 100006
|
|
|
|
//用户模块
|