submissions: use snake case in json tags
This commit is contained in:
parent
7c900d2af7
commit
ba9eeeb311
@ -10,36 +10,36 @@ type AuditEventType int32
|
||||
// User clicked "Submit", "Accept" etc
|
||||
const AuditEventTypeAction AuditEventType = 0
|
||||
type AuditEventDataAction struct {
|
||||
TargetStatus uint32 `json:"TargetStatus"`
|
||||
TargetStatus uint32 `json:"target_status"`
|
||||
}
|
||||
|
||||
// User wrote a comment
|
||||
const AuditEventTypeComment AuditEventType = 1
|
||||
type AuditEventDataComment struct {
|
||||
Comment string `json:"Comment"`
|
||||
Comment string `json:"comment"`
|
||||
}
|
||||
|
||||
// User changed Model
|
||||
const AuditEventTypeChangeModel AuditEventType = 2
|
||||
type AuditEventDataChangeModel struct {
|
||||
OldModelID uint64 `json:"OldModelID"`
|
||||
OldModelVersion uint64 `json:"OldModelVersion"`
|
||||
NewModelID uint64 `json:"NewModelID"`
|
||||
NewModelVersion uint64 `json:"NewModelVersion"`
|
||||
OldModelID uint64 `json:"old_model_id"`
|
||||
OldModelVersion uint64 `json:"old_model_version"`
|
||||
NewModelID uint64 `json:"new_model_id"`
|
||||
NewModelVersion uint64 `json:"new_model_version"`
|
||||
}
|
||||
// Validator validates model
|
||||
const AuditEventTypeChangeValidatedModel AuditEventType = 3
|
||||
type AuditEventDataChangeValidatedModel struct {
|
||||
ValidatedModelID uint64 `json:"ValidatedModelID"`
|
||||
ValidatedModelVerison uint64 `json:"ValidatedModelVerison"`
|
||||
ValidatedModelID uint64 `json:"validated_model_id"`
|
||||
ValidatedModelVerison uint64 `json:"validated_model_verison"`
|
||||
}
|
||||
|
||||
// User changed DisplayName / Creator
|
||||
const AuditEventTypeChangeDisplayName AuditEventType = 4
|
||||
const AuditEventTypeChangeCreator AuditEventType = 5
|
||||
type AuditEventDataChangeName struct {
|
||||
OldName string `json:"OldName"`
|
||||
NewName string `json:"NewName"`
|
||||
OldName string `json:"old_name"`
|
||||
NewName string `json:"new_name"`
|
||||
}
|
||||
|
||||
type AuditEvent struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user