(ctx context.Context, sid string)
| 107 | } |
| 108 | |
| 109 | func (i *imlDocService) Get(ctx context.Context, sid string) (*Doc, error) { |
| 110 | doc, err := i.store.First(ctx, map[string]interface{}{"sid": sid}) |
| 111 | if err != nil { |
| 112 | return nil, err |
| 113 | } |
| 114 | return &Doc{ |
| 115 | ID: doc.Sid, |
| 116 | Creator: doc.Creator, |
| 117 | Updater: doc.Updater, |
| 118 | Doc: doc.Doc, |
| 119 | UpdateTime: doc.UpdateAt, |
| 120 | CreateTime: doc.CreateAt, |
| 121 | }, nil |
| 122 | } |
nothing calls this directly
no outgoing calls
no test coverage detected