MCPcopy
hub / github.com/Wei-Shaw/sub2api / SetBalance

Method SetBalance

backend/ent/mutation.go:39600–39603  ·  view source on GitHub ↗

SetBalance sets the "balance" field.

(f float64)

Source from the content-addressed store, hash-verified

39598
39599// SetBalance sets the "balance" field.
39600func (m *UserMutation) SetBalance(f float64) {
39601 m.balance = &f
39602 m.addbalance = nil
39603}
39604
39605// Balance returns the value of the "balance" field in the mutation.
39606func (m *UserMutation) Balance() (r float64, exists bool) {

Calls

no outgoing calls