修改登录、管理员详情、对接销售服务
This commit is contained in:
@@ -2,6 +2,11 @@ package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
const (
|
||||
AdminTypeAdmin = 2
|
||||
AdminTypeSale = 1
|
||||
)
|
||||
|
||||
// Admin 公司内部人员表
|
||||
type Admin struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
|
||||
@@ -53,6 +58,9 @@ type AdminInfo struct {
|
||||
Type uint8 `json:"type" gorm:"type"` // 1:销售,2:管理员
|
||||
SaleId int64 `json:"sale_id" gorm:"sale_id"` // 销售ID
|
||||
FailNumber int `gorm:"column:fail_number;type:tinyint(2);default:0;comment:连续登录失败次数" json:"fail_number"`
|
||||
SaleName string `json:"sale_name" gorm:"-"`
|
||||
GroupId int64 `json:"group_id" gorm:"-"`
|
||||
GroupName string `json:"group_name" gorm:"-"`
|
||||
}
|
||||
|
||||
type AdminInfoRet struct {
|
||||
|
||||
@@ -3,15 +3,20 @@ package dao
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type JwtInfo struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);comment:头像" json:"avatar"`
|
||||
Name string `gorm:"column:name;type:varchar(30);comment:真实姓名;NOT NULL" json:"name"`
|
||||
Phone string `gorm:"column:phone;type:char(12);comment:电话" json:"phone"`
|
||||
Email string `gorm:"column:email;type:varchar(255);comment:邮箱" json:"email"`
|
||||
LastTime utils.CustomTime `gorm:"column:last_time;type:datetime;comment:最后一次登录时间" json:"last_time"`
|
||||
Time int `json:"time"`
|
||||
Roles []JwtInfoServices `json:"roles"`
|
||||
Refresh string `json:"refresh"`
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);comment:头像" json:"avatar"`
|
||||
Name string `gorm:"column:name;type:varchar(30);comment:真实姓名;NOT NULL" json:"name"`
|
||||
Phone string `gorm:"column:phone;type:char(12);comment:电话" json:"phone"`
|
||||
Email string `gorm:"column:email;type:varchar(255);comment:邮箱" json:"email"`
|
||||
LastTime utils.CustomTime `gorm:"column:last_time;type:datetime;comment:最后一次登录时间" json:"last_time"`
|
||||
Time int `json:"time"`
|
||||
Roles []JwtInfoServices `json:"roles"`
|
||||
Refresh string `json:"refresh"`
|
||||
SaleId int64 `json:"sale_id" gorm:"sale_id"` // 销售ID
|
||||
Type uint8 `json:"type" gorm:"type"` // 销售ID
|
||||
SaleName string `json:"sale_name" gorm:"-"`
|
||||
GroupId int64 `json:"group_id" gorm:"-"`
|
||||
GroupName string `json:"group_name" gorm:"-"`
|
||||
}
|
||||
|
||||
type JwtOutInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user