Git Product home page Git Product logo

vveq-api's Introduction

vveq-api

User

  • GET /api/user/usernameIsExists/:username 查询用户名是否存在
  • POST /api/user 用户注册
  • POST /api/user/login 用户登录
  • GET /api/user/:uid 获取用户信息

Verify

  • GET /api/verify 获取验证码
  • POST /api/verify 验证码校验

Like

  • POST /api/like 点赞/取消点赞

User

GET /api/user/usernameIsExists/:username 查询用户名是否存在

request

参数名 类型 是否必传 说明
username String 用户名

response

参数名 类型 是否必传 说明
status Int 1:用户名不存在,0:用户名已存在

POST /api/user 用户注册

request

参数名 类型 是否必传 说明
from.username String 用户名
from.password String 密码
from.email String 电子邮件
verifyForm.CaptchaType String audio:音频,character:运算表达式,为空表示数字
verifyForm.Id String 系统生成的验证Id
verifyForm.VerifyValue String 用户输入的验证码

response

参数名 类型 是否必传 说明
status Int 1:注册成功,0:注册失败,-1:验证码错误
data Struct 注册成功返回用户信息

POST /api/user/login 用户登录

request

参数名 类型 是否必传 说明
username string 用户名
password string 密码

response

参数名 类型 是否必传 说明
status Int 1:成功,0:失败
data Struct 登录成功返回用户信息

GET /api/user/:uid 获取用户信息

request

参数名 类型 是否必传 说明
uid Int 用户id

response

参数名 类型 是否必传 说明
status Int 1:成功,0:失败
data Struct或Error 注册成功返回用户信息,失败返回失败信息

Verify

POST /api/verify/getCaptcha 获取验证码

request

参数名 类型 是否必传 说明
status Int 1:成功,0:失败
CaptchaType String audio:音频,character:运算表达式,为空表示数字
Id String 系统生成的验证Id
VerifyValue String 用户输入的验证码

response

参数名 类型 是否必传 说明
status Int 1:成功,0:失败
data String Base64图片验证码
captchaId String 验证码Id,用户验证码的校验

POST /api/verify/verifyCaptcha 验证码校验

request

参数名 类型 是否必传 说明
CaptchaType String audio:音频,character:运算表达式,为空表示数字
Id String 系统生成的验证Id
VerifyValue String 用户输入的验证码

response

参数名 类型 是否必传 说明
status Int 1:成功,0:失败

Like

POST /api/like 点赞/取消点赞

request

参数名 类型 是否必传 说明
type int 点赞对象,0-主题 1-回复
uid int 用户id
pid int 对象id

response

参数名 类型 是否必传 说明
status Int 1:成功,0:失败

vveq-api's People

Contributors

joyboo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

guanbinbin

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.