chore(go): use json instead of jsonapi

This commit is contained in:
email
2022-02-04 16:51:48 +08:00
parent a8f0c9a7b1
commit d6418f5ff9
16 changed files with 131 additions and 109 deletions

View File

@ -1,11 +1,11 @@
package api
type Login struct {
Name string `jsonapi:"attr,name"`
Password string `jsonapi:"attr,password"`
Name string `json:"name"`
Password string `json:"password"`
}
type Signup struct {
Name string `jsonapi:"attr,name"`
Password string `jsonapi:"attr,password"`
Name string `json:"name"`
Password string `json:"password"`
}