Commit 1e83f268 by 孙龙

init

parent 0714cb3c
Showing with 22 additions and 16 deletions
go run .\service\behavior\main.go -configDir=./config/ -logDir=./log/ -LogReportDir=./LogReport/
## 运行
**go run .\service\behavior\main.go -configDir=./config/ -logDir=./log/ -LogReportDir=./LogReport/**
{
"interface_type":"1",
"access_url":"api.ichun.com/v3/login",
"err_msg":"响应超时",
"err_code":"40004",
"uid":"16678",
"user_name":"张三",
"user_ip":"153.2.15.1",
"remark":"a=1&b=2&c=3",
"create_time":1581582711,
"create_time_str":"2020-02-14 16:40"
}
\ No newline at end of file
## 测试json
{
"interface_type":"1",
"access_url":"api.ichun.com/v3/login",
"err_msg":"响应超时",
"err_code":"40004",
"uid":"16678",
"user_name":"张三",
"user_ip":"153.2.15.1",
"remark":"a=1&b=2&c=3",
"create_time":1581582711,
"create_time_str":"2020-02-14 16:40"
}
## 配置修改
复制config目录下的
cp ./config/db.toml.demo ./config/db.toml
修改相关配置即可
\ No newline at end of file
[rabbitmq_ichunt]
queue_name="ichunt_monitor_user_behavior"
routing_key="ichunt_monitor_user_behavior"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment