添加使用次数
This commit is contained in:
parent
f1fb29f26a
commit
9d270bcce3
@ -4478,6 +4478,7 @@ type GetPromptResp struct {
|
||||
PromptUuid string `protobuf:"bytes,1,opt,name=promptUuid,proto3" json:"promptUuid"` // 关键词UUID
|
||||
Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt"` // 关键词
|
||||
Category CategoryENUM `protobuf:"varint,3,opt,name=category,proto3,enum=Cast.CategoryENUM" json:"category"` // 分类
|
||||
UseCount uint32 `protobuf:"varint,4,opt,name=useCount,proto3" json:"useCount"` // 使用次数
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -4533,6 +4534,13 @@ func (x *GetPromptResp) GetCategory() CategoryENUM {
|
||||
return CategoryENUM_UNKNOWN_CATEGORY
|
||||
}
|
||||
|
||||
func (x *GetPromptResp) GetUseCount() uint32 {
|
||||
if x != nil {
|
||||
return x.UseCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListPromptsReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt"` // 关键词搜索
|
||||
@ -4608,6 +4616,7 @@ type PromptInfo struct {
|
||||
Category CategoryENUM `protobuf:"varint,3,opt,name=category,proto3,enum=Cast.CategoryENUM" json:"category"` // 分类
|
||||
Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark"` // 备注
|
||||
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success"` // 是否更新成功
|
||||
UseCount uint32 `protobuf:"varint,6,opt,name=useCount,proto3" json:"useCount"` // 使用次数
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -4677,6 +4686,13 @@ func (x *PromptInfo) GetSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *PromptInfo) GetUseCount() uint32 {
|
||||
if x != nil {
|
||||
return x.UseCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListPromptsResp struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data []*PromptInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` // 关键词列表
|
||||
@ -5757,18 +5773,19 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
||||
"\fGetPromptReq\x12\x1e\n" +
|
||||
"\n" +
|
||||
"promptUuid\x18\x01 \x01(\tR\n" +
|
||||
"promptUuid\"w\n" +
|
||||
"promptUuid\"\x93\x01\n" +
|
||||
"\rGetPromptResp\x12\x1e\n" +
|
||||
"\n" +
|
||||
"promptUuid\x18\x01 \x01(\tR\n" +
|
||||
"promptUuid\x12\x16\n" +
|
||||
"\x06prompt\x18\x02 \x01(\tR\x06prompt\x12.\n" +
|
||||
"\bcategory\x18\x03 \x01(\x0e2\x12.Cast.CategoryENUMR\bcategory\"\x88\x01\n" +
|
||||
"\bcategory\x18\x03 \x01(\x0e2\x12.Cast.CategoryENUMR\bcategory\x12\x1a\n" +
|
||||
"\buseCount\x18\x04 \x01(\rR\buseCount\"\x88\x01\n" +
|
||||
"\x0eListPromptsReq\x12\x16\n" +
|
||||
"\x06prompt\x18\x01 \x01(\tR\x06prompt\x12.\n" +
|
||||
"\bcategory\x18\x02 \x01(\x0e2\x12.Cast.CategoryENUMR\bcategory\x12\x12\n" +
|
||||
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1a\n" +
|
||||
"\bpageSize\x18\x04 \x01(\x05R\bpageSize\"\xa6\x01\n" +
|
||||
"\bpageSize\x18\x04 \x01(\x05R\bpageSize\"\xc2\x01\n" +
|
||||
"\n" +
|
||||
"PromptInfo\x12\x1e\n" +
|
||||
"\n" +
|
||||
@ -5777,7 +5794,8 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
||||
"\x06prompt\x18\x02 \x01(\tR\x06prompt\x12.\n" +
|
||||
"\bcategory\x18\x03 \x01(\x0e2\x12.Cast.CategoryENUMR\bcategory\x12\x16\n" +
|
||||
"\x06remark\x18\x04 \x01(\tR\x06remark\x12\x18\n" +
|
||||
"\asuccess\x18\x05 \x01(\bR\asuccess\"M\n" +
|
||||
"\asuccess\x18\x05 \x01(\bR\asuccess\x12\x1a\n" +
|
||||
"\buseCount\x18\x06 \x01(\rR\buseCount\"M\n" +
|
||||
"\x0fListPromptsResp\x12$\n" +
|
||||
"\x04data\x18\x01 \x03(\v2\x10.Cast.PromptInfoR\x04data\x12\x14\n" +
|
||||
"\x05count\x18\x02 \x01(\x03R\x05count\"<\n" +
|
||||
|
||||
@ -7139,6 +7139,8 @@ func (m *GetPromptResp) validate(all bool) error {
|
||||
|
||||
// no validation rules for Category
|
||||
|
||||
// no validation rules for UseCount
|
||||
|
||||
if len(errors) > 0 {
|
||||
return GetPromptRespMultiError(errors)
|
||||
}
|
||||
@ -7357,6 +7359,8 @@ func (m *PromptInfo) validate(all bool) error {
|
||||
|
||||
// no validation rules for Success
|
||||
|
||||
// no validation rules for UseCount
|
||||
|
||||
if len(errors) > 0 {
|
||||
return PromptInfoMultiError(errors)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user