Download this file
| 1 | package equipo |
| 2 | |
| 3 | import ( |
| 4 | "amadan.net/oficina/equipo/internal/equipo/personapi" |
| 5 | "context" |
| 6 | ) |
| 7 | |
| 8 | func (s *Store) nativeAPI() *personapi.Native { |
| 9 | return &personapi.Native{NativeOperations: s, LookupMember: s.Member, SettingsUpdate: s.saveAPIProjectSettings, Devices: s.personDevices, ReadTeam: s.readTeam, Owner: requireOwner, Copy: copyText, Invalid: ErrInvalid, Forbidden: ErrForbidden, NotFound: ErrNotFound, Conflict: ErrConflict, Unavailable: ErrUnavailable} |
| 10 | } |
| 11 | func (s *Store) PersonAPIExtendedMutation(ctx context.Context, a Actor, op, id string, in any, m Mutation) (personapi.Result, error) { |
| 12 | return s.nativeAPI().Mutate(ctx, a, op, id, in, m) |
| 13 | } |
| 14 | |