fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -69,6 +69,14 @@ func (_c *WalletTransactionsCreate) SetSearchText(v string) *WalletTransactionsC
return _c
}
// SetNillableSearchText sets the "search_text" field if the given value is not nil.
func (_c *WalletTransactionsCreate) SetNillableSearchText(v *string) *WalletTransactionsCreate {
if v != nil {
_c.SetSearchText(*v)
}
return _c
}
// SetID sets the "id" field.
func (_c *WalletTransactionsCreate) SetID(v string) *WalletTransactionsCreate {
_c.mutation.SetID(v)
@@ -130,9 +138,6 @@ func (_c *WalletTransactionsCreate) check() error {
if _, ok := _c.mutation.CreatedAt(); !ok {
return &ValidationError{Name: "created_at", err: errors.New(`models: missing required field "WalletTransactions.created_at"`)}
}
if _, ok := _c.mutation.SearchText(); !ok {
return &ValidationError{Name: "search_text", err: errors.New(`models: missing required field "WalletTransactions.search_text"`)}
}
return nil
}