mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
fix delete user
This commit is contained in:
parent
7a4969c238
commit
07fe5a02af
@ -31,7 +31,7 @@ type User struct {
|
|||||||
AffQuota int `json:"aff_quota" gorm:"type:int;default:0;column:aff_quota"` // 邀请剩余额度
|
AffQuota int `json:"aff_quota" gorm:"type:int;default:0;column:aff_quota"` // 邀请剩余额度
|
||||||
AffHistoryQuota int `json:"aff_history_quota" gorm:"type:int;default:0;column:aff_history"` // 邀请历史额度
|
AffHistoryQuota int `json:"aff_history_quota" gorm:"type:int;default:0;column:aff_history"` // 邀请历史额度
|
||||||
InviterId int `json:"inviter_id" gorm:"type:int;column:inviter_id;index"`
|
InviterId int `json:"inviter_id" gorm:"type:int;column:inviter_id;index"`
|
||||||
DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckUserExistOrDeleted check if user exist or deleted, if not exist, return false, nil, if deleted or exist, return true, nil
|
// CheckUserExistOrDeleted check if user exist or deleted, if not exist, return false, nil, if deleted or exist, return true, nil
|
||||||
|
@ -72,13 +72,13 @@ const UsersTable = () => {
|
|||||||
}, {
|
}, {
|
||||||
title: '状态', dataIndex: 'status', render: (text, record, index) => {
|
title: '状态', dataIndex: 'status', render: (text, record, index) => {
|
||||||
return (<div>
|
return (<div>
|
||||||
{record.deleted_at !== null? <Tag color='red'>已注销</Tag> : renderStatus(text)}
|
{record.DeletedAt !== null? <Tag color='red'>已注销</Tag> : renderStatus(text)}
|
||||||
</div>);
|
</div>);
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
title: '', dataIndex: 'operate', render: (text, record, index) => (<div>
|
title: '', dataIndex: 'operate', render: (text, record, index) => (<div>
|
||||||
{
|
{
|
||||||
record.deleted_at !== null ? <></>:
|
record.DeletedAt !== null ? <></>:
|
||||||
<>
|
<>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="确定?"
|
title="确定?"
|
||||||
|
Loading…
Reference in New Issue
Block a user