123456789101112131415161718 |
- package model
- import (
- "github.com/jinzhu/gorm"
- "github.com/satori/go.uuid"
- )
- type SysUser struct {
- gorm.Model
- UUID uuid.UUID `json:"uuid"`
- Username string `json:"userName"`
- Password string `json:"-"`
- NickName string `json:"nickName" gorm:"default:'系统用户'"`
- HeaderImg string `json:"headerImg" gorm:"default:'http://qmplusimg.henrongyi.top/head.png'"`
- Authority SysAuthority `json:"authority" gorm:"ForeignKey:AuthorityId;AssociationForeignKey:AuthorityId"`
- AuthorityId string `json:"authorityId" gorm:"default:888"`
- }
|