code refactor, added middleware,
This commit is contained in:
11
model/model.go
Normal file
11
model/model.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
type LoginStruct struct {
|
||||
Username string `json:"username" xml:"username" form:"username"`
|
||||
Password string `json:"password" xml:"password" form:"password"`
|
||||
}
|
||||
|
||||
type SignupStruct struct {
|
||||
Username string `json:"username" xml:"username" form:"username"`
|
||||
Password string `json:"password" xml:"password" form:"password"`
|
||||
}
|
||||
Reference in New Issue
Block a user