admin apis
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
etc/percutaneous.yaml
|
||||
run.toml
|
||||
tmp
|
||||
@@ -52,8 +52,8 @@ func (l *AddUserLogic) AddUser(in *percutaneous.AddUserRequest) (*percutaneous.R
|
||||
}
|
||||
if info.Id < utils.NumberOne {
|
||||
info.HostCode = in.HostCode
|
||||
info.HostUserId = adminInfo.ID
|
||||
info.UserId = in.UserId
|
||||
info.HostUserId = in.UserId
|
||||
info.UserId = adminInfo.ID
|
||||
err = model.GroupModel{}.Init().Create(&info)
|
||||
if err != nil {
|
||||
l.Logger.Error(err)
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
[base]
|
||||
port = 8060
|
||||
name = "percutaneous-service"
|
||||
listenOn = "0.0.0.0:11600"
|
||||
mode = "dev"
|
||||
[log]
|
||||
path = "logs"
|
||||
serviceName = "percutaneous-service"
|
||||
mode = "file"
|
||||
encoding = "plain"
|
||||
level = "info"
|
||||
keepDays = 7
|
||||
maxSize = 50
|
||||
maxBackups = 5
|
||||
compress = false
|
||||
# 测试的地址
|
||||
[mysql]
|
||||
host = '39.106.171.204'
|
||||
port = 33066
|
||||
user = 'root'
|
||||
password = 'MOLXRZNOU4Y4'
|
||||
database = 'dms-percutaneous'
|
||||
charset = 'utf8mb4'
|
||||
prefix = ''
|
||||
debug = true
|
||||
[mysql_read]
|
||||
host = '39.106.171.204'
|
||||
port = 33066
|
||||
user = 'root'
|
||||
password = 'MOLXRZNOU4Y4'
|
||||
database = 'dms-percutaneous'
|
||||
charset = 'utf8mb4'
|
||||
prefix = ''
|
||||
|
||||
[redis]
|
||||
host = '39.106.171.204'
|
||||
password = 'lLMLcuPpzSj'
|
||||
port = 6379
|
||||
db = 1
|
||||
[log-redis]
|
||||
host = '39.106.171.204'
|
||||
password = 'lLMLcuPpzSj'
|
||||
port = 6379
|
||||
db = 3
|
||||
[services]
|
||||
user = "user-service"
|
||||
[encrypt]
|
||||
data_key = "u2t9T3luZtoRfhBstkFN6TiIMW38BA8a" #内容数据,
|
||||
Binary file not shown.
Reference in New Issue
Block a user