mirror of
https://github.com/astaxie/beego.git
synced 2025-06-14 18:50:40 +00:00
modify struc
This commit is contained in:
14
examples/blog/model/user.go
Normal file
14
examples/blog/model/user.go
Normal file
@ -0,0 +1,14 @@
|
||||
package model
|
||||
import (
|
||||
"./beego"
|
||||
)
|
||||
|
||||
type Users struct {
|
||||
username string
|
||||
password string
|
||||
beego.M
|
||||
}
|
||||
|
||||
func NewUsers() (a *Users) {
|
||||
return &Users{}
|
||||
}
|
Reference in New Issue
Block a user