You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
597 B

package controller
import "education/service"
type Application struct {
Setup *service.ServiceSetup
}
type User struct {
LoginName string
Password string
IsAdmin string
}
var users []User
func init() {
admin := User{LoginName:"admin", Password:"123456", IsAdmin:"T"}
alice := User{LoginName:"ChainDesk", Password:"123456", IsAdmin:"T"}
bob := User{LoginName:"alice", Password:"123456", IsAdmin:"F"}
jack := User{LoginName:"bob", Password:"123456", IsAdmin:"F"}
users = append(users, admin)
users = append(users, alice)
users = append(users, bob)
users = append(users, jack)
}