v1.3.0: lib: add login struct in lib
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
83d99310a6
commit
31da556505
1 changed files with 15 additions and 0 deletions
15
lib/login/struct.go
Normal file
15
lib/login/struct.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package login_lib
|
||||
|
||||
type (
|
||||
// RequestLogin model info
|
||||
RequestLogin struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
// ResponseLogin model info
|
||||
ResponseLogin struct {
|
||||
Token string `json:"token"`
|
||||
PublicKey string `json:"publickey"`
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue