MCPcopy Index your code
hub / github.com/amlun/enterbj

github.com/amlun/enterbj @0.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.1 ↗ · + Follow
59 symbols 116 edges 22 files 29 documented · 49%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

enterbj

公告

本应用为测试项目,请勿使用在线上

应用介绍

辅助办理进京证,可以接入第三方API做到消息通知等

使用说明

准备

首先先安装Go并配置好环境变量 $GOROOT 和 $GOPATH

然后安装Go的包管理Glide

之后就checkout代码

mkdir -p $GOPATH/src/github.com/amlun
git clone https://github.com/amlun/enterbj $GOPATH/src/github.com/amlun/enterbj
cd $GOPATH/src/github.com/amlun/enterbj
glide install
cp config.ini.example config.ini

配置

目前SIGN处于测试中,还不对外开放

修改userId为你自己的userId 😼

配置你要接收信息的邮箱地址 email 📮

然后配置邮件服务 [mail]

修改signUrl 😊

[test]
userId = ABCDEFGHIJKLMNOPQRSTUVWXYZ
email  = user@example.com

[enterbj]
appKey = kkk
appSource = bjjj
signUrl = http://127.0.0.1:8080/gensign/%s%s
timeOut = 2000

[mail]
userName = user@example.com
passWord = password
smtpHost = smtp.example.com
smtpPort = 25

运行

go run main.go config.ini

或者

make build
./enterbj config.ini

运行结果

车辆已有进京证:

INFO[0001] 车辆 冀A66666 已经申请到进京证,时间为 2018-01-01 到 2018-01-07 

车辆可以申请进京证:

WARN[0001] 该车辆 冀A88888 当前可以申请,请立即申请!

服务可用

INFO[0001] 当前服务可用,请尽快处理

服务不可用

ERRO[0001] 当前服务不可用

邮件提醒

INFO[0001] sendMail(进京证办理服务检查, 当前服务不可用)
INFO[0001] sendMail(进京证办理服务检查, 当前服务可用,请尽快处理)
INFO[0001] sendMail(进京证办理提醒, 该车辆 冀A66666 当前可以申请,请立即申请!)

版本记录

当前开发版本

完成基本接口的对接:

  • [x] 获取用户信息
  • [x] 获取车辆列表
  • [x] 获取车辆环保信息
  • [x] 服务可用状态
  • [ ] 登录
  • [ ] 验证码
  • [ ] 获取其他驾驶人员列表
  • [ ] 添加车辆
  • [ ] 添加其他驾驶员
  • [ ] 提交申请

其它

讨论

群聊

公告

Extension points exported contracts — how you extend this code

Request (Interface)
(no doc)
request/request.go

Core symbols most depended-on inside this repo

sendRequest
called by 6
core/http.go
readBase64Image
called by 4
core/http.go
sendMail
called by 3
main.go
GetSign
called by 2
core/sign.go
CarList
called by 2
core/enterbj.go
CheckServiceStatus
called by 2
core/enterbj.go
InitConfig
called by 1
main.go
signals
called by 1
main.go

Shape

Function 26
Struct 23
Method 8
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

main.go11 symbols
core/enterbj.go11 symbols
core/http.go9 symbols
core/enterbj_test.go6 symbols
response/carlist.go3 symbols
core/sign.go3 symbols
response/verify.go1 symbols
response/sumit_paper.go1 symbols
response/response.go1 symbols
response/personinfo.go1 symbols
response/login.go1 symbols
response/check_env_grade.go1 symbols

For agents

$ claude mcp add enterbj \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact