submissions: use snake case in json tags

This commit is contained in:
Quaternions 2025-04-07 20:22:15 -07:00
parent 7c900d2af7
commit ba9eeeb311
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131

@ -10,36 +10,36 @@ type AuditEventType int32
// User clicked "Submit", "Accept" etc // User clicked "Submit", "Accept" etc
const AuditEventTypeAction AuditEventType = 0 const AuditEventTypeAction AuditEventType = 0
type AuditEventDataAction struct { type AuditEventDataAction struct {
TargetStatus uint32 `json:"TargetStatus"` TargetStatus uint32 `json:"target_status"`
} }
// User wrote a comment // User wrote a comment
const AuditEventTypeComment AuditEventType = 1 const AuditEventTypeComment AuditEventType = 1
type AuditEventDataComment struct { type AuditEventDataComment struct {
Comment string `json:"Comment"` Comment string `json:"comment"`
} }
// User changed Model // User changed Model
const AuditEventTypeChangeModel AuditEventType = 2 const AuditEventTypeChangeModel AuditEventType = 2
type AuditEventDataChangeModel struct { type AuditEventDataChangeModel struct {
OldModelID uint64 `json:"OldModelID"` OldModelID uint64 `json:"old_model_id"`
OldModelVersion uint64 `json:"OldModelVersion"` OldModelVersion uint64 `json:"old_model_version"`
NewModelID uint64 `json:"NewModelID"` NewModelID uint64 `json:"new_model_id"`
NewModelVersion uint64 `json:"NewModelVersion"` NewModelVersion uint64 `json:"new_model_version"`
} }
// Validator validates model // Validator validates model
const AuditEventTypeChangeValidatedModel AuditEventType = 3 const AuditEventTypeChangeValidatedModel AuditEventType = 3
type AuditEventDataChangeValidatedModel struct { type AuditEventDataChangeValidatedModel struct {
ValidatedModelID uint64 `json:"ValidatedModelID"` ValidatedModelID uint64 `json:"validated_model_id"`
ValidatedModelVerison uint64 `json:"ValidatedModelVerison"` ValidatedModelVerison uint64 `json:"validated_model_verison"`
} }
// User changed DisplayName / Creator // User changed DisplayName / Creator
const AuditEventTypeChangeDisplayName AuditEventType = 4 const AuditEventTypeChangeDisplayName AuditEventType = 4
const AuditEventTypeChangeCreator AuditEventType = 5 const AuditEventTypeChangeCreator AuditEventType = 5
type AuditEventDataChangeName struct { type AuditEventDataChangeName struct {
OldName string `json:"OldName"` OldName string `json:"old_name"`
NewName string `json:"NewName"` NewName string `json:"new_name"`
} }
type AuditEvent struct { type AuditEvent struct {