MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / HardDelete

Method HardDelete

model/user.go:403–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401}
402
403func (user *User) HardDelete() error {
404 if user.Id == 0 {
405 return errors.New("id 为空!")
406 }
407 err := DB.Unscoped().Delete(user).Error
408 return err
409}
410
411// ValidateAndFill check password & user status
412func (user *User) ValidateAndFill() (err error) {

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.45

Tested by

no test coverage detected