https://github.com/digi1874/api.ys1994-user
用户接口
https://github.com/digi1874/api.ys1994-user
user-api
Last synced: 10 months ago
JSON representation
用户接口
- Host: GitHub
- URL: https://github.com/digi1874/api.ys1994-user
- Owner: digi1874
- Created: 2020-05-28T04:16:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T06:13:20.000Z (about 6 years ago)
- Last Synced: 2025-03-31T01:24:47.881Z (about 1 year ago)
- Topics: user-api
- Language: Go
- Homepage: https://www.ys1994.nl/
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 用户接口
* [前端网站](https://account.ys1994.nl/)
* [前端项目](https://github.com/digi1874/account.ys1994)
## 构建
> 依赖
> 1. go 1.13+
> 2. mysql (4.1+,本项目开发时使用5.7;库需要设置为utf8mb4)
> 3. 项目根目录下创建文件db.json连接mysql数据库
>> ./db.json
>> ```
>> {
>> "user": "用户名",
>> "password": "密码",
>> "localhost": "地址",
>> "databaseName": "库名"
>> }
>> ```
>> #
> ```
> # 开发,开启http://localhost:8031/
> $ go run main.go -env=dev
>
> # 生产程序
> $ go build
> ```
> #
## 接口说明
> * response status code:
>> 1. 200: 确定
>> 2. 400: 错误
>> 3. 401: 无权限,token无效
>> 4. 404: 不存在
> * response data msg: 回应说明
> #
> 1. 获取