| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package constant
- type OCTYPE int64
- const (
- OCTYPE_ADMIN = 1
- OCTYPE_ENT = 2
- OCTYPE_ORG = 3
- OCTYPE_PARTNER = 4
- )
- const (
- ROLE_TYPE_SYS = 1
- ROLE_TYPE_USER = 2
- )
- const (
- SUPER_ROLE = 1
- OP_ROLE_ADMIN = 2
- OP_ROLE_USER = 3
- ORG_ROLE_ADMIN = 4
- ORG_ROLE_USER = 5
- ENT_ROLE_ADMIN = 6
- ENT_USER_ROLE = 7
- PARTNER_ROLE_ADMIN = 8
- PARTNER_ROLE_USER = 9
- )
- // RetCode Result Code
- type RetCode int
- // Result Code List
- const (
- RetOk RetCode = 0
- RetErr RetCode = 500
- )
- type JsonResult struct {
- Code RetCode `json:"code"`
- Msg interface{} `json:"msg"`
- Data interface{} `json:"data"`
- }
|