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

Method SetRole

backend/ent/mutation.go:39564–39566  ·  view source on GitHub ↗

SetRole sets the "role" field.

(s string)

Source from the content-addressed store, hash-verified

39562
39563// SetRole sets the "role" field.
39564func (m *UserMutation) SetRole(s string) {
39565 m.role = &s
39566}
39567
39568// Role returns the value of the "role" field in the mutation.
39569func (m *UserMutation) Role() (r string, exists bool) {

Calls

no outgoing calls