fix: some api bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user