Module project, commit, submission
All checks were successful
Build and Release / release (push) Successful in 1m15s
All checks were successful
Build and Release / release (push) Successful in 1m15s
This commit is contained in:
12
internal/dtos/request/commit.go
Normal file
12
internal/dtos/request/commit.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package request
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type CreateCommitDto struct {
|
||||
SnapshotJson json.RawMessage `json:"snapshot_json" validate:"required"`
|
||||
EditSummary string `json:"edit_summary" validate:"required,max=500"`
|
||||
}
|
||||
|
||||
type RestoreCommitDto struct {
|
||||
CommitID string `json:"commit_id" validate:"required,uuid"`
|
||||
}
|
||||
Reference in New Issue
Block a user