Documentation ¶
Index ¶
- type DBClient
- func (dbClient *DBClient) Create(ctx context.Context, req *pb.PromptCreateRequest) (*pb.Prompt, error)
- func (dbClient *DBClient) Delete(ctx context.Context, req *pb.PromptDeleteRequest) (*commonpb.VoidResponse, error)
- func (dbClient *DBClient) Get(ctx context.Context, req *pb.PromptGetRequest) (*pb.Prompt, error)
- func (dbClient *DBClient) Paging(ctx context.Context, req *pb.PromptPagingRequest) (*pb.PromptPagingResponse, error)
- func (dbClient *DBClient) Update(ctx context.Context, req *pb.PromptUpdateRequest) (*pb.Prompt, error)
- type Prompt
- type Prompts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
func (*DBClient) Delete ¶
func (dbClient *DBClient) Delete(ctx context.Context, req *pb.PromptDeleteRequest) (*commonpb.VoidResponse, error)
func (*DBClient) Paging ¶
func (dbClient *DBClient) Paging(ctx context.Context, req *pb.PromptPagingRequest) (*pb.PromptPagingResponse, error)
type Prompt ¶
type Prompt struct { common.BaseModel Name string `gorm:"column:name;type:varchar(191)" json:"name" yaml:"name"` Desc string `gorm:"column:desc;type:varchar(1024)" json:"desc" yaml:"desc"` ClientID string `gorm:"column:client_id;type:char(36)" json:"clientID" yaml:"clientID"` Messages message.Messages `gorm:"column:messages;type:longtext" json:"messages" yaml:"messages"` Metadata metadata.Metadata `gorm:"column:metadata;type:mediumtext" json:"metadata" yaml:"metadata"` }
func (*Prompt) ToProtobuf ¶
Click to show internal directories.
Click to hide internal directories.