mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-04 15:42:44 +08:00
初次提交
This commit is contained in:
15
model/user.go
Normal file
15
model/user.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Account string `json:"account" gorm:"primaryKey;column:account" `
|
||||
Password string `json:"password" gorm:"column:password" `
|
||||
Role int `json:"role" gorm:"column:role" `
|
||||
CreateTime time.Time `json:"createTime" gorm:"column:create_time" `
|
||||
Remark string `json:"remark" gorm:"column:remark" `
|
||||
}
|
||||
|
||||
func (*User) TableName() string {
|
||||
return "users"
|
||||
}
|
Reference in New Issue
Block a user