Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRun ¶
type BaseRun struct {
Prompt string `json:"prompt" form:"prompt" validate:"required"`
}
type CodeGenerate ¶
type ConversationList ¶
type ConversationRun ¶
type ConversationRun struct { ConversationId string `json:"conversationId" form:"conversationId" validate:"required,uuid"` ParentMsgId string `json:"parentMsgId,omitempty" form:"parentMsgId"` Role string `json:"role" form:"role" validate:"required"` Content string `json:"content" form:"content" validate:"required"` ContentType string `json:"contentType" form:"contentType" validate:"required"` LLM string `json:"llm" form:"llm" validate:"required"` Model string `json:"models" form:"models"` Stream bool `json:"stream" form:"stream" validate:"required"` }
type ConversationWS ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct { UserName string `json:"userName"` RoleKeyword string `json:"roleKeyword"` RoleSort uint `json:"roleSort"` jwt.RegisteredClaims }
JwtCustomClaims are custom claims extending default ones
type MessageFeedback ¶
type RoleCreate ¶
type RoleCreate struct { Name string `json:"name" form:"name" validate:"required"` Keyword string `json:"keyword" form:"keyword" validate:"required"` Sort *uint `json:"sort" form:"sort" validate:"required"` Desc string `json:"desc" form:"desc"` Status *uint `json:"status" form:"status"` Creator string `json:"creator" form:"creator"` }
type RoleUpdate ¶
type UserCreate ¶
type UserCreate struct { Username string `json:"username" form:"username" validate:"required"` ZhName string `json:"zhName" form:"zhName" validate:"required"` Email string `json:"email" form:"email"` Status uint `json:"status,omitempty" form:"status"` RoleId uint `json:"roleId" form:"roleId" validate:"required"` }
func (*UserCreate) FieldTrans ¶
func (c *UserCreate) FieldTrans() map[string]string
FieldTrans translates the name of the field that needs to be verified
type UserLogin ¶
type UserLogin struct { Username string `json:"username" form:"username"` Password string `json:"password" form:"password"` }
UserLogin represents user authentication request body
type UserUpdate ¶
Click to show internal directories.
Click to hide internal directories.