mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 22:59:44 +00:00
27 lines
686 B
Go
27 lines
686 B
Go
/*
|
|
* @Author: LinkLeong link@icewhale.com
|
|
* @Date: 2022-05-13 18:15:46
|
|
* @LastEditors: LinkLeong
|
|
* @LastEditTime: 2022-06-14 14:29:30
|
|
* @FilePath: /CasaOS/service/model/o_user.go
|
|
* @Description:
|
|
* @Website: https://www.casaos.io
|
|
* Copyright (c) 2022 by icewhale, All Rights Reserved.
|
|
*/
|
|
package model
|
|
|
|
//Soon to be removed
|
|
type UserDBModel struct {
|
|
Id int `gorm:"column:id;primary_key" json:"id"`
|
|
UserName string `json:"user_name"`
|
|
Password string `json:"password"`
|
|
Role string `json:"role"`
|
|
Email string `json:"email"`
|
|
Avatar string `json:"avatar"`
|
|
NickName string `json:"nick_name"`
|
|
}
|
|
|
|
func (p *UserDBModel) UserDBModel() string {
|
|
return "o_user"
|
|
}
|