MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Create

Method Create

module/tag/iml.go:36–44  ·  view source on GitHub ↗
(ctx context.Context, input *tag_dto.CreateTag)

Source from the content-addressed store, hash-verified

34}
35
36func (i *imlTagModule) Create(ctx context.Context, input *tag_dto.CreateTag) error {
37 if input.Id == "" {
38 input.Id = uuid.New().String()
39 }
40 return i.tagService.Create(ctx, &tag.CreateTag{
41 Id: input.Id,
42 Name: input.Name,
43 })
44}
45
46func (i *imlTagModule) Delete(ctx context.Context, id string) error {
47 return i.tagService.Delete(ctx, id)

Callers

nothing calls this directly

Calls 2

CreateMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected