answer/internal/schema/reason_schema.go

17 lines
439 B
Go
Raw Normal View History

2022-09-27 17:59:05 +08:00
package schema
type ReasonItem struct {
ReasonType int `json:"reason_type"`
Name string `json:"name"`
Description string `json:"description"`
ContentType string `json:"content_type"`
2022-09-30 11:49:05 +08:00
Placeholder string `json:"placeholder"`
2022-09-27 17:59:05 +08:00
}
type ReasonReq struct {
// ObjectType
ObjectType string `validate:"required" form:"object_type" json:"object_type"`
// Action
Action string `validate:"required" form:"action" json:"action"`
}