(ctx context.Context, serviceId string)
| 33 | } |
| 34 | |
| 35 | func (i *imlDocService) LatestDocCommit(ctx context.Context, serviceId string) (*commit.Commit[DocCommit], error) { |
| 36 | return i.commitService.Latest(ctx, serviceId) |
| 37 | } |
| 38 | |
| 39 | func (i *imlDocService) CommitDoc(ctx context.Context, serviceId string, data *Doc) error { |
| 40 | return i.commitService.Save(ctx, serviceId, &DocCommit{Content: data.Doc}) |