tronnet/workflows: Static Analysis -- Golang / static-go (push) Successful in 30s
use json encoding for route body parameters, implement modify user/group/pool operations, simplify schema by using comon lib struct tags and RequireAll and AtLeastOne helper functions, properly implement locadb as Backend interface
8 lines
192 B
Go
8 lines
192 B
Go
package app
|
|
|
|
type Login struct { // login body struct
|
|
UsernameRaw string `json:"username" binding:"required"`
|
|
Username Username
|
|
Password string `json:"password" binding:"required"`
|
|
}
|