Skip to content

DrunkenWhale/IdentifyTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docs

Register

url : /api/auth/register

param type value
name string username
password string password
mailbox string mailbox

response:

{
  "status": 1,
  "message": "Succeed",
  "data": {}
}
param type value
status bool 1 / 0
message string "Succeed" / "InvalidArgument" /"UnknownPasswordContentType" / ""UserExist"
data object null

Login

url : /api/auth/login

param type value
mailbox string mailbox
password string password

response:

{
  "status": 1,
  "message": "Succeed",
  "data": {
    "token": "114514 1919810"
  }
}
param type value
status bool 1 / 0
message string "Succeed" / "InvalidArgument" / "MailboxUnMatchPassword"
data object {"token" : tokenString}

About

a simple user identify template with jwt token and gin, toy project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published