Compare commits
2 Commits
44a1e1d1d8
...
9bc4e69f25
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bc4e69f25 | |||
| 37386e2625 |
@ -4,7 +4,7 @@ from appPublic.timeUtils import curDateString
|
|||||||
from appPublic.aes import aes_decode_b64, aes_encode_b64
|
from appPublic.aes import aes_decode_b64, aes_encode_b64
|
||||||
from appPublic.uniqueID import getID
|
from appPublic.uniqueID import getID
|
||||||
from time import time
|
from time import time
|
||||||
from ahserver.serverenv import get_serverenv
|
from ahserver.serverenv import get_serverenv, ServerEnv
|
||||||
from ahserver.auth_api import get_session_userinfo, user_login
|
from ahserver.auth_api import get_session_userinfo, user_login
|
||||||
from sqlor.dbpools import DBPools
|
from sqlor.dbpools import DBPools
|
||||||
from rbac.check_perm import create_org, create_user
|
from rbac.check_perm import create_org, create_user
|
||||||
|
|||||||
61
models/downapikey.json
Normal file
61
models/downapikey.json
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"summary": [
|
||||||
|
{
|
||||||
|
"name": "downapikey",
|
||||||
|
"title": "下位系统apikey",
|
||||||
|
"primary": [
|
||||||
|
"id"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"title": "id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "dappid",
|
||||||
|
"title": "下位系统id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "userid",
|
||||||
|
"title": "用户id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "apikey",
|
||||||
|
"title": "akikey",
|
||||||
|
"type": "str",
|
||||||
|
"length": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "enabled_date",
|
||||||
|
"title": "创建日期",
|
||||||
|
"type": "date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "expired_date",
|
||||||
|
"title": "失效日期",
|
||||||
|
"type": "date"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"codes": [
|
||||||
|
{
|
||||||
|
"field": "dappid",
|
||||||
|
"table": "downapp",
|
||||||
|
"valuefield": "id",
|
||||||
|
"textfield": "name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "userid",
|
||||||
|
"table": "users",
|
||||||
|
"valuefield": "id",
|
||||||
|
"textfield": "username"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
49
models/downapp.json
Normal file
49
models/downapp.json
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"summary": [
|
||||||
|
{
|
||||||
|
"name": "downapp",
|
||||||
|
"title": "下位系统",
|
||||||
|
"primary": [
|
||||||
|
"id"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"title": "id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "name",
|
||||||
|
"title": "下位应用名",
|
||||||
|
"type": "str",
|
||||||
|
"length": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "description",
|
||||||
|
"title": "描述",
|
||||||
|
"type": "text",
|
||||||
|
"default": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "secretkey",
|
||||||
|
"title": "加密密钥",
|
||||||
|
"type": "str",
|
||||||
|
"length": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "allowedips",
|
||||||
|
"title": "允许ip集",
|
||||||
|
"type": "str",
|
||||||
|
"length": 300
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "orgid",
|
||||||
|
"title": "所属机构",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user