entity: no sign-post needed

This commit is contained in:
Michael Muré 2021-02-20 14:37:06 +01:00
parent 45e540c178
commit bd09541752
No known key found for this signature in database
GPG Key ID: A4457C029293126F
9 changed files with 0 additions and 27 deletions

View File

@ -21,9 +21,6 @@ type AddCommentOperation struct {
Files []repository.Hash `json:"files"`
}
// Sign-post method for gqlgen
func (op *AddCommentOperation) IsOperation() {}
func (op *AddCommentOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -27,9 +27,6 @@ type CreateOperation struct {
Files []repository.Hash `json:"files"`
}
// Sign-post method for gqlgen
func (op *CreateOperation) IsOperation() {}
func (op *CreateOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -24,9 +24,6 @@ type EditCommentOperation struct {
Files []repository.Hash `json:"files"`
}
// Sign-post method for gqlgen
func (op *EditCommentOperation) IsOperation() {}
func (op *EditCommentOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -21,9 +21,6 @@ type LabelChangeOperation struct {
Removed []Label `json:"removed"`
}
// Sign-post method for gqlgen
func (op *LabelChangeOperation) IsOperation() {}
func (op *LabelChangeOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -16,9 +16,6 @@ type NoOpOperation struct {
OpBase
}
// Sign-post method for gqlgen
func (op *NoOpOperation) IsOperation() {}
func (op *NoOpOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -17,9 +17,6 @@ type SetMetadataOperation struct {
NewMetadata map[string]string `json:"new_metadata"`
}
// Sign-post method for gqlgen
func (op *SetMetadataOperation) IsOperation() {}
func (op *SetMetadataOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -18,9 +18,6 @@ type SetStatusOperation struct {
Status Status `json:"status"`
}
// Sign-post method for gqlgen
func (op *SetStatusOperation) IsOperation() {}
func (op *SetStatusOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -21,9 +21,6 @@ type SetTitleOperation struct {
Was string `json:"was"`
}
// Sign-post method for gqlgen
func (op *SetTitleOperation) IsOperation() {}
func (op *SetTitleOperation) Id() entity.Id {
return idOperation(op, &op.OpBase)
}

View File

@ -49,9 +49,6 @@ type Operation interface {
AllMetadata() map[string]string
setExtraMetadataImmutable(key string, value string)
// sign-post method for gqlgen
IsOperation()
}
func idOperation(op Operation, base *OpBase) entity.Id {