jarvan

command module
v0.0.0-...-928417b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Version License

AP列表

  • /api/auth/login 登录/身份校验
  • /api/auth/logout 登出
  • /api/article/list 文章列表
  • /api/article/detail/:id 获取文章详情
  • /upload 图片上传
  • /upload/images 获取图片链接

完善中...

数据结构

字段 描述
code 返回状态码 200-success
data 返回数据
msg 返回消息

eg:

{
    "code": 200,
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRhbmdjaHVubGluaXRAZ21haWwuY29tIiwicGFzc3dvcmQiOiJtYW50aXMxMjEyIiwiZXhwIjoxNTQ3MzU4OTkwfQ.Wff2gVySzR7ARCa1BAhGLRBnOhsw1Y4R9RC4aIkGEMw",
        "username": "Mantis"
    },
    "msg": "操作成功"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
middleware
jwt
pkg
app
api
service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址