code refactor, added middleware,

This commit is contained in:
2025-01-28 15:26:22 +01:00
parent 52aa874f8f
commit f7efee56f0
10 changed files with 133 additions and 66 deletions

11
model/model.go Normal file
View 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"`
}