mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
entity: no sign-post needed
This commit is contained in:
parent
45e540c178
commit
bd09541752
@ -21,9 +21,6 @@ type AddCommentOperation struct {
|
|||||||
Files []repository.Hash `json:"files"`
|
Files []repository.Hash `json:"files"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *AddCommentOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *AddCommentOperation) Id() entity.Id {
|
func (op *AddCommentOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -27,9 +27,6 @@ type CreateOperation struct {
|
|||||||
Files []repository.Hash `json:"files"`
|
Files []repository.Hash `json:"files"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *CreateOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *CreateOperation) Id() entity.Id {
|
func (op *CreateOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,6 @@ type EditCommentOperation struct {
|
|||||||
Files []repository.Hash `json:"files"`
|
Files []repository.Hash `json:"files"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *EditCommentOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *EditCommentOperation) Id() entity.Id {
|
func (op *EditCommentOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,6 @@ type LabelChangeOperation struct {
|
|||||||
Removed []Label `json:"removed"`
|
Removed []Label `json:"removed"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *LabelChangeOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *LabelChangeOperation) Id() entity.Id {
|
func (op *LabelChangeOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,6 @@ type NoOpOperation struct {
|
|||||||
OpBase
|
OpBase
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *NoOpOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *NoOpOperation) Id() entity.Id {
|
func (op *NoOpOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,6 @@ type SetMetadataOperation struct {
|
|||||||
NewMetadata map[string]string `json:"new_metadata"`
|
NewMetadata map[string]string `json:"new_metadata"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *SetMetadataOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *SetMetadataOperation) Id() entity.Id {
|
func (op *SetMetadataOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,6 @@ type SetStatusOperation struct {
|
|||||||
Status Status `json:"status"`
|
Status Status `json:"status"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *SetStatusOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *SetStatusOperation) Id() entity.Id {
|
func (op *SetStatusOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -21,9 +21,6 @@ type SetTitleOperation struct {
|
|||||||
Was string `json:"was"`
|
Was string `json:"was"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sign-post method for gqlgen
|
|
||||||
func (op *SetTitleOperation) IsOperation() {}
|
|
||||||
|
|
||||||
func (op *SetTitleOperation) Id() entity.Id {
|
func (op *SetTitleOperation) Id() entity.Id {
|
||||||
return idOperation(op, &op.OpBase)
|
return idOperation(op, &op.OpBase)
|
||||||
}
|
}
|
||||||
|
@ -49,9 +49,6 @@ type Operation interface {
|
|||||||
AllMetadata() map[string]string
|
AllMetadata() map[string]string
|
||||||
|
|
||||||
setExtraMetadataImmutable(key string, value string)
|
setExtraMetadataImmutable(key string, value string)
|
||||||
|
|
||||||
// sign-post method for gqlgen
|
|
||||||
IsOperation()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func idOperation(op Operation, base *OpBase) entity.Id {
|
func idOperation(op Operation, base *OpBase) entity.Id {
|
||||||
|
Loading…
Reference in New Issue
Block a user