mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-17 02:02:26 +08:00
refactor
This commit is contained in:
6
dispatch/service/forbid_user_info.go
Normal file
6
dispatch/service/forbid_user_info.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package service
|
||||
|
||||
type ForbidUserInfo struct {
|
||||
UserId uint32
|
||||
ForbidEndTime uint64
|
||||
}
|
||||
@@ -2,7 +2,6 @@ package service
|
||||
|
||||
import (
|
||||
"hk4e/dispatch/dao"
|
||||
"hk4e/dispatch/entity/gm"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
@@ -37,7 +36,7 @@ func (f *Service) UserPasswordChange(uid uint32) bool {
|
||||
}
|
||||
|
||||
// 封号
|
||||
func (f *Service) ForbidUser(info *gm.ForbidUserInfo) bool {
|
||||
func (f *Service) ForbidUser(info *ForbidUserInfo) bool {
|
||||
if info == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user