Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
vion-label
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8f0a6d20
authored
Oct 26, 2021
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加禁止用户表
1 parent
fb17aaf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletions
images/init.sql
label-platform/src/main/resources/application-dev.properties
label-platform/src/main/resources/application-pro.properties
images/init.sql
View file @
8f0a6d2
...
@@ -276,4 +276,29 @@ alter table d_pic add FOREIGN KEY ("pack_id") REFERENCES "public"."d_pack" ("id"
...
@@ -276,4 +276,29 @@ alter table d_pic add FOREIGN KEY ("pack_id") REFERENCES "public"."d_pack" ("id"
alter
table
d_pack
add
FOREIGN
KEY
(
"storage_id"
)
REFERENCES
"public"
.
"d_storage"
(
"id"
);
alter
table
d_pack
add
FOREIGN
KEY
(
"storage_id"
)
REFERENCES
"public"
.
"d_storage"
(
"id"
);
alter
table
d_pack
add
FOREIGN
KEY
(
"task_id"
)
REFERENCES
"public"
.
"d_task"
(
"id"
);
alter
table
d_pack
add
FOREIGN
KEY
(
"task_id"
)
REFERENCES
"public"
.
"d_task"
(
"id"
);
alter
table
r_pack_tag
add
FOREIGN
KEY
(
"pack_id"
)
REFERENCES
"public"
.
"d_pack"
(
"id"
);
\ No newline at end of file
\ No newline at end of file
alter
table
r_pack_tag
add
FOREIGN
KEY
(
"pack_id"
)
REFERENCES
"public"
.
"d_pack"
(
"id"
);
-- 禁止用户表
create
table
if
not
exists
s_forbidden_user
(
"id"
serial8
,
"user_id"
varchar
(
64
)
DEFAULT
NULL
,
"status"
int2
DEFAULT
NULL
,
"deleted"
int2
DEFAULT
NULL
,
"name"
varchar
(
32
)
DEFAULT
NULL
,
"remark"
varchar
(
64
)
DEFAULT
NULL
,
"url"
varchar
(
32
)
DEFAULT
NULL
,
"create_time"
timestamp
DEFAULT
NULL
,
"update_time"
timestamp
DEFAULT
NULL
,
CONSTRAINT
"s_forbidden_user_pkey"
PRIMARY
KEY
(
"id"
)
);
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"id"
IS
'id'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"user_id"
IS
'用户id'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"status"
IS
'状态,0:禁止登陆,查询,等所有操作'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"deleted"
IS
'是否删除:0:未删除,1:已删除'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"name"
IS
'用户名字'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"remark"
IS
'备注'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"url"
IS
'请求接口'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"create_time"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"s_forbidden_user"
.
"update_time"
IS
'修改时间'
;
COMMENT
ON
TABLE
"public"
.
"s_forbidden_user"
IS
'禁止用户表'
;
create
index
if
not
exists
"indx_user_id"
on
"s_forbidden_user"
using
btree
(
"user_id"
);
label-platform/src/main/resources/application-dev.properties
View file @
8f0a6d2
...
@@ -13,12 +13,14 @@ debug=false
...
@@ -13,12 +13,14 @@ debug=false
# vion
# vion
vion.match-
url
=
http://127.0.0.1:12000/alg
vion.match-
url
=
http://127.0.0.1:12000/alg
#es
spring.elasticsearch.rest.uris
=
192.168.1.106:9200
spring.elasticsearch.rest.uris
=
192.168.1.106:9200
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.username
=
elastic
spring.elasticsearch.rest.password
=
viontech
spring.elasticsearch.rest.password
=
viontech
access.log.aggs.cron
=
0/5 * * * * ?
access.log.aggs.cron
=
0/5 * * * * ?
# duration毫秒,limit次数
illegal.map./reid/
getPeople.duration
=
3000
illegal.map./reid/
getPeople.duration
=
3000
illegal.map./reid/
getPeople.limit
=
6
illegal.map./reid/
getPeople.limit
=
6
...
...
label-platform/src/main/resources/application-pro.properties
View file @
8f0a6d2
...
@@ -19,12 +19,14 @@ debug=false
...
@@ -19,12 +19,14 @@ debug=false
vion.match-
url
=
http://101.201.36.180:12001/alg
vion.match-
url
=
http://101.201.36.180:12001/alg
#vion.match-url=http://127.0.0.1:12000/alg
#vion.match-url=http://127.0.0.1:12000/alg
#es
spring.elasticsearch.rest.uris
=
101.201.36.180:9200
spring.elasticsearch.rest.uris
=
101.201.36.180:9200
spring.elasticsearch.rest.username
=
spring.elasticsearch.rest.username
=
spring.elasticsearch.rest.password
=
spring.elasticsearch.rest.password
=
access.log.aggs.cron
=
0/5 * * * * ?
access.log.aggs.cron
=
0/5 * * * * ?
# duration毫秒,limit次数
illegal.map./reid/
getPeople.duration
=
3000
illegal.map./reid/
getPeople.duration
=
3000
illegal.map./reid/
getPeople.limit
=
6
illegal.map./reid/
getPeople.limit
=
6
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment