first commit
This commit is contained in:
73
constant/code.go
Normal file
73
constant/code.go
Normal file
@@ -0,0 +1,73 @@
|
||||
package constant
|
||||
|
||||
const ProxyConnectError = -4 //代理连接失败
|
||||
const ProxyNotInConnect = -3 //代理错误
|
||||
const UserNotInConnect = -2 //链接没有找到用户
|
||||
const RoleNotInConnect = -1 //链接没有找到角色
|
||||
const OK = 0
|
||||
const InvalidParam = 1 //参数有误
|
||||
const DBError = 2 //数据库异常
|
||||
const UserExist = 3 //用户已存在
|
||||
const PwdIncorrect = 4 //密码不正确
|
||||
const UserNotExist = 5 //用户不存在
|
||||
const SessionInvalid = 6 //session无效
|
||||
const HardwareIncorrect = 7 //Hardware错误
|
||||
const RoleAlreadyCreate = 8 //已经创建过角色了
|
||||
const RoleNotExist = 9 //角色不存在
|
||||
const CityNotExist = 10 //城市不存在
|
||||
const CityNotMe = 11 //城市不是自己的
|
||||
const UpError = 12 //升级失败
|
||||
const GeneralNotFound = 13 //武将不存在
|
||||
const GeneralNotMe = 14 //武将不是自己的
|
||||
const ArmyNotFound = 15 //军队不存在
|
||||
const ArmyNotMe = 16 //军队不是自己的
|
||||
const ResNotEnough = 17 //资源不足
|
||||
const OutArmyLimit = 18 //超过带兵限制
|
||||
const ArmyBusy = 19 //军队再忙
|
||||
const GeneralBusy = 20 //将领再忙
|
||||
const CannotGiveUp = 21 //不能放弃
|
||||
const BuildNotMe = 22 //领地不是自己的
|
||||
const ArmyNotMain = 23 //军队没有主将
|
||||
const UnReachable = 24 //不可到达
|
||||
const PhysicalPowerNotEnough = 25 //体力不足
|
||||
const DecreeNotEnough = 26 //政令不足
|
||||
const GoldNotEnough = 27 //金币不足
|
||||
const GeneralRepeat = 28 //重复上阵
|
||||
const CostNotEnough = 29 //cost不足
|
||||
const GeneralNoHas = 30 //没有该合成武将
|
||||
const GeneralNoSame = 31 //合成武将非同名
|
||||
const ArmyNotEnough = 32 //队伍数不足
|
||||
const TongShuaiNotEnough = 33 //统帅不足
|
||||
const GeneralStarMax = 34 //升级到最大星级
|
||||
const UnionCreateError = 35 //联盟创建失败
|
||||
const UnionNotFound = 36 //联盟不存在
|
||||
const PermissionDenied = 37 //权限不足
|
||||
const UnionAlreadyHas = 38 //已经有联盟
|
||||
const UnionNotAllowExit = 39 //不允许退出
|
||||
const ContentTooLong = 40 //内容太长
|
||||
const NotBelongUnion = 41 //不属于该联盟
|
||||
const PeopleIsFull = 42 //用户已满
|
||||
const HasApply = 43 //已经申请过了
|
||||
const BuildCanNotDefend = 44 //不能驻守
|
||||
const BuildCanNotAttack = 45 //不能占领
|
||||
const BuildMBSNotFound = 46 //没有军营
|
||||
const BuildWarFree = 47 //免战中
|
||||
const ArmyConscript = 48 //征兵中
|
||||
const BuildGiveUpAlready = 49 //领地已经在放弃了
|
||||
const CanNotBuildNew = 50 //不能再新建建筑在领地上
|
||||
const CanNotTransfer = 51 //不能调兵
|
||||
const HoldIsFull = 52 //坑位已满
|
||||
const ArmyIsOutside = 53 //队伍在城外
|
||||
const CanNotUpBuild = 54 //不能升级建筑
|
||||
const CanNotDestroy = 55 //不能拆除建筑
|
||||
const OutCollectTimesLimit = 56 //超过征收次数
|
||||
const InCdCanNotOperate = 57 //cd内不能操作
|
||||
const OutGeneralLimit = 58 //武将超过上限了
|
||||
const NotHasJiShi = 59 //没有集市
|
||||
const OutPosTagLimit = 60 //超过了收藏上限
|
||||
const OutSkillLimit = 61 //超过了技能上限
|
||||
const UpSkillError = 62 //装备技能失败
|
||||
const DownSkillError = 63 //取下技能失败
|
||||
const OutArmNotMatch = 64 //兵种不符
|
||||
const PosNotSkill = 65 //该位置没有技能
|
||||
const SkillLevelFull = 66 //技能等级已满
|
||||
Reference in New Issue
Block a user