(input *api.Info, appends ...string)
| 187 | }) |
| 188 | } |
| 189 | func getLabels(input *api.Info, appends ...string) []string { |
| 190 | labels := make([]string, 0, len(appends)+9) |
| 191 | labels = append(labels, input.UUID, input.Name, input.Description, input.Path, input.Service, input.Team, input.Updater) |
| 192 | labels = append(labels, appends...) |
| 193 | return labels |
| 194 | } |
| 195 | func (i *imlAPIService) Create(ctx context.Context, input *Create) (err error) { |
| 196 | operater := utils.UserId(ctx) |
| 197 | return i.store.Transaction(ctx, func(ctx context.Context) error { |