Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiprodcoder/MIXAPI
/ DeleteUserById
Function
DeleteUserById
model/user.go:247–253 ·
view source on GitHub ↗
(id int)
Source
from the content-addressed store, hash-verified
245
}
246
247
func
DeleteUserById(id int) (err error) {
248
if
id == 0 {
249
return
errors.New(
"id 为空!"
)
250
}
251
user := User{Id: id}
252
return
user.Delete()
253
}
254
255
func
HardDeleteUserById(id int) error {
256
if
id == 0 {
Callers
1
DeleteSelf
Function · 0.92
Calls
1
Delete
Method · 0.95
Tested by
no test coverage detected