Giter Club home page Giter Club logo

enterbj's Introduction

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  = [email protected]

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

[mail]
userName = [email protected]
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 当前可以申请,请立即申请!)

版本记录

当前开发版本

完成基本接口的对接:

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

其它

讨论

群聊

公告

enterbj's People

Contributors

amlun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.