refactor:Optimization of text messages when accepting message req (#981)

This commit is contained in:
pluto
2023-08-31 16:38:35 +08:00
committed by GitHub
parent d7532347ad
commit 687614d3f4
2 changed files with 2 additions and 10 deletions
+1 -4
View File
@@ -72,11 +72,8 @@ type CustomElem struct {
Description string `mapstructure:"description"`
Extension string `mapstructure:"extension"`
}
type TextElem struct {
Text string `mapstructure:"text" validate:"required"`
}
type TextContentElem struct {
type TextElem struct {
Content string `json:"content" validate:"required"`
}