12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package global
- const (
- // ContextKeyUserObj 上下文用户对象
- ContextKeyUserObj = "authedUserObj"
- // ContextKeyServiceId 上下文服务对象
- ContextKeyServiceId = "serviceId"
- // RedisPrefixAuth redis 权限验证前缀
- RedisPrefixAuth = "auth:"
- // RedisPrefixRoleApi redis 角色api
- RedisPrefixRoleApi = "role_api:"
- RedisMSFXMedicineInfo = "msfx_info:"
- )
- const (
- // MsgOk 成功
- MsgOk = 200
- // Found 资源发生改变
- Found = 302
- // BadRequest 请求错误
- BadRequest = 400
- // Unauthorized 未认证
- Unauthorized = 401
- // NoAccessErr 无权访问
- NoAccessErr = 402
- // PageNotFoundErr 页面未找到
- PageNotFoundErr = 404
- // NotAcceptable 不被允许的操作
- NotAcceptable = 406
- // MsgErr 异常
- MsgErr = 500
- // ConvertErr 转换异常
- ConvertErr = 501
- // ArgsValidErr 参数验证错误
- ArgsValidErr = 503
- // DatabaseOperationErr 数据库操作出错
- DatabaseOperationErr = 504
- UnmarshalErr = 505
- // ParseFormErr 解析表单数据异常
- ParseFormErr = 506
- // EnterDeptErr 未进入公司
- EnterDeptErr = 600
- )
- var (
- ServiceId int
- )
|