tasklist taskinfo
This commit is contained in:
214
cmd.pb.go
214
cmd.pb.go
@@ -71,6 +71,53 @@ func (UserIdType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// NameSpaceId 用户 ID 类型
|
||||
type NameSpaceId int32
|
||||
|
||||
const (
|
||||
NameSpaceId_DID NameSpaceId = 0 // 默认设备号命名空间
|
||||
NameSpaceId_WUID NameSpaceId = 1 // 默认WUID命名空间
|
||||
)
|
||||
|
||||
// Enum value maps for NameSpaceId.
|
||||
var (
|
||||
NameSpaceId_name = map[int32]string{
|
||||
0: "DID",
|
||||
1: "WUID",
|
||||
}
|
||||
NameSpaceId_value = map[string]int32{
|
||||
"DID": 0,
|
||||
"WUID": 1,
|
||||
}
|
||||
)
|
||||
|
||||
func (x NameSpaceId) Enum() *NameSpaceId {
|
||||
p := new(NameSpaceId)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x NameSpaceId) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (NameSpaceId) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_cmd_proto_enumTypes[1].Descriptor()
|
||||
}
|
||||
|
||||
func (NameSpaceId) Type() protoreflect.EnumType {
|
||||
return &file_cmd_proto_enumTypes[1]
|
||||
}
|
||||
|
||||
func (x NameSpaceId) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use NameSpaceId.Descriptor instead.
|
||||
func (NameSpaceId) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
// ErrorCode 返回码
|
||||
type ErrorCode int32
|
||||
|
||||
@@ -153,11 +200,11 @@ func (x ErrorCode) String() string {
|
||||
}
|
||||
|
||||
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_cmd_proto_enumTypes[1].Descriptor()
|
||||
return file_cmd_proto_enumTypes[2].Descriptor()
|
||||
}
|
||||
|
||||
func (ErrorCode) Type() protoreflect.EnumType {
|
||||
return &file_cmd_proto_enumTypes[1]
|
||||
return &file_cmd_proto_enumTypes[2]
|
||||
}
|
||||
|
||||
func (x ErrorCode) Number() protoreflect.EnumNumber {
|
||||
@@ -166,7 +213,7 @@ func (x ErrorCode) Number() protoreflect.EnumNumber {
|
||||
|
||||
// Deprecated: Use ErrorCode.Descriptor instead.
|
||||
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{1}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type CmdErrorCode int32
|
||||
@@ -196,11 +243,11 @@ func (x CmdErrorCode) String() string {
|
||||
}
|
||||
|
||||
func (CmdErrorCode) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_cmd_proto_enumTypes[2].Descriptor()
|
||||
return file_cmd_proto_enumTypes[3].Descriptor()
|
||||
}
|
||||
|
||||
func (CmdErrorCode) Type() protoreflect.EnumType {
|
||||
return &file_cmd_proto_enumTypes[2]
|
||||
return &file_cmd_proto_enumTypes[3]
|
||||
}
|
||||
|
||||
func (x CmdErrorCode) Number() protoreflect.EnumNumber {
|
||||
@@ -209,7 +256,7 @@ func (x CmdErrorCode) Number() protoreflect.EnumNumber {
|
||||
|
||||
// Deprecated: Use CmdErrorCode.Descriptor instead.
|
||||
func (CmdErrorCode) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{2}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
type TaskStatus int32
|
||||
@@ -254,11 +301,11 @@ func (x TaskStatus) String() string {
|
||||
}
|
||||
|
||||
func (TaskStatus) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_cmd_proto_enumTypes[3].Descriptor()
|
||||
return file_cmd_proto_enumTypes[4].Descriptor()
|
||||
}
|
||||
|
||||
func (TaskStatus) Type() protoreflect.EnumType {
|
||||
return &file_cmd_proto_enumTypes[3]
|
||||
return &file_cmd_proto_enumTypes[4]
|
||||
}
|
||||
|
||||
func (x TaskStatus) Number() protoreflect.EnumNumber {
|
||||
@@ -267,14 +314,15 @@ func (x TaskStatus) Number() protoreflect.EnumNumber {
|
||||
|
||||
// Deprecated: Use TaskStatus.Descriptor instead.
|
||||
func (TaskStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return file_cmd_proto_rawDescGZIP(), []int{3}
|
||||
return file_cmd_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
// SaasReq 命令请求
|
||||
type SaasReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UseridType UserIdType `protobuf:"varint,1,opt,name=userid_type,json=useridType,proto3,enum=saasapi.UserIdType" json:"userid_type,omitempty"` // 用户ID类型
|
||||
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UseridType UserIdType `protobuf:"varint,1,opt,name=userid_type,json=useridType,proto3,enum=saasapi.UserIdType" json:"userid_type,omitempty"` // 用户ID类型
|
||||
Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` // 小程序/小游戏/公众号/视频号的appid
|
||||
NamespaceId uint32 `protobuf:"varint,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"` // 命名空间ID
|
||||
// Types that are valid to be assigned to Cmd:
|
||||
//
|
||||
// *SaasReq_Read
|
||||
@@ -334,6 +382,13 @@ func (x *SaasReq) GetAppid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetNamespaceId() uint32 {
|
||||
if x != nil {
|
||||
return x.NamespaceId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SaasReq) GetCmd() isSaasReq_Cmd {
|
||||
if x != nil {
|
||||
return x.Cmd
|
||||
@@ -1319,7 +1374,7 @@ type FileBlock struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
BlockSha256 string `protobuf:"bytes,1,opt,name=block_sha256,json=blockSha256,proto3" json:"block_sha256,omitempty"` // 块的sha256
|
||||
BlockLength uint64 `protobuf:"varint,2,opt,name=block_length,json=blockLength,proto3" json:"block_length,omitempty"` // 块的字节长度
|
||||
Uploaded bool `protobuf:"varint,3,opt,name=uploaded,proto3" json:"uploaded,omitempty"` // 是否已上传(在TaskInfo请求返回)
|
||||
Uploaded bool `protobuf:"varint,3,opt,name=uploaded,proto3" json:"uploaded,omitempty"` // 是否已上传(在TaskCreate/TaskInfo请求返回)
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -1807,11 +1862,12 @@ var File_cmd_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_cmd_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"\xe1\x03\n" +
|
||||
"\tcmd.proto\x12\asaasapi\"\x84\x04\n" +
|
||||
"\aSaasReq\x124\n" +
|
||||
"\vuserid_type\x18\x01 \x01(\x0e2\x13.saasapi.UserIdTypeR\n" +
|
||||
"useridType\x12\x14\n" +
|
||||
"\x05appid\x18\x02 \x01(\tR\x05appid\x12#\n" +
|
||||
"\x05appid\x18\x02 \x01(\tR\x05appid\x12!\n" +
|
||||
"\fnamespace_id\x18\x03 \x01(\rR\vnamespaceId\x12#\n" +
|
||||
"\x04read\x18\n" +
|
||||
" \x01(\v2\r.saasapi.ReadH\x00R\x04read\x12&\n" +
|
||||
"\x05write\x18\v \x01(\v2\x0e.saasapi.WriteH\x00R\x05write\x129\n" +
|
||||
@@ -1929,7 +1985,10 @@ const file_cmd_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x06OPENID\x10\x01\x12\f\n" +
|
||||
"\bINNERID1\x10\n" +
|
||||
"*\xef\x02\n" +
|
||||
"* \n" +
|
||||
"\vNameSpaceId\x12\a\n" +
|
||||
"\x03DID\x10\x00\x12\b\n" +
|
||||
"\x04WUID\x10\x01*\xef\x02\n" +
|
||||
"\tErrorCode\x12\b\n" +
|
||||
"\x04SUCC\x10\x00\x12\x13\n" +
|
||||
"\x0fINVALID_ACCOUNT\x10e\x12\x15\n" +
|
||||
@@ -1975,72 +2034,73 @@ func file_cmd_proto_rawDescGZIP() []byte {
|
||||
return file_cmd_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_cmd_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
|
||||
var file_cmd_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
|
||||
var file_cmd_proto_goTypes = []any{
|
||||
(UserIdType)(0), // 0: saasapi.UserIdType
|
||||
(ErrorCode)(0), // 1: saasapi.ErrorCode
|
||||
(CmdErrorCode)(0), // 2: saasapi.CmdErrorCode
|
||||
(TaskStatus)(0), // 3: saasapi.TaskStatus
|
||||
(*SaasReq)(nil), // 4: saasapi.SaasReq
|
||||
(*Read)(nil), // 5: saasapi.Read
|
||||
(*ReadItem)(nil), // 6: saasapi.ReadItem
|
||||
(*Write)(nil), // 7: saasapi.Write
|
||||
(*WriteItem)(nil), // 8: saasapi.WriteItem
|
||||
(*Bytes)(nil), // 9: saasapi.Bytes
|
||||
(*Uint32S)(nil), // 10: saasapi.Uint32s
|
||||
(*FlagsWithExpire)(nil), // 11: saasapi.FlagsWithExpire
|
||||
(*FlagWithExpire)(nil), // 12: saasapi.FlagWithExpire
|
||||
(*ColumnWrite)(nil), // 13: saasapi.ColumnWrite
|
||||
(*Task)(nil), // 14: saasapi.Task
|
||||
(*TaskList)(nil), // 15: saasapi.TaskList
|
||||
(*TaskRun)(nil), // 16: saasapi.TaskRun
|
||||
(*TaskDelete)(nil), // 17: saasapi.TaskDelete
|
||||
(*TaskInfo)(nil), // 18: saasapi.TaskInfo
|
||||
(*FileInfo)(nil), // 19: saasapi.FileInfo
|
||||
(*FileBlock)(nil), // 20: saasapi.FileBlock
|
||||
(*SaasRes)(nil), // 21: saasapi.SaasRes
|
||||
(*ReadRes)(nil), // 22: saasapi.ReadRes
|
||||
(*WriteRes)(nil), // 23: saasapi.WriteRes
|
||||
(*ValueItem)(nil), // 24: saasapi.ValueItem
|
||||
(*TaskListRes)(nil), // 25: saasapi.TaskListRes
|
||||
(NameSpaceId)(0), // 1: saasapi.NameSpaceId
|
||||
(ErrorCode)(0), // 2: saasapi.ErrorCode
|
||||
(CmdErrorCode)(0), // 3: saasapi.CmdErrorCode
|
||||
(TaskStatus)(0), // 4: saasapi.TaskStatus
|
||||
(*SaasReq)(nil), // 5: saasapi.SaasReq
|
||||
(*Read)(nil), // 6: saasapi.Read
|
||||
(*ReadItem)(nil), // 7: saasapi.ReadItem
|
||||
(*Write)(nil), // 8: saasapi.Write
|
||||
(*WriteItem)(nil), // 9: saasapi.WriteItem
|
||||
(*Bytes)(nil), // 10: saasapi.Bytes
|
||||
(*Uint32S)(nil), // 11: saasapi.Uint32s
|
||||
(*FlagsWithExpire)(nil), // 12: saasapi.FlagsWithExpire
|
||||
(*FlagWithExpire)(nil), // 13: saasapi.FlagWithExpire
|
||||
(*ColumnWrite)(nil), // 14: saasapi.ColumnWrite
|
||||
(*Task)(nil), // 15: saasapi.Task
|
||||
(*TaskList)(nil), // 16: saasapi.TaskList
|
||||
(*TaskRun)(nil), // 17: saasapi.TaskRun
|
||||
(*TaskDelete)(nil), // 18: saasapi.TaskDelete
|
||||
(*TaskInfo)(nil), // 19: saasapi.TaskInfo
|
||||
(*FileInfo)(nil), // 20: saasapi.FileInfo
|
||||
(*FileBlock)(nil), // 21: saasapi.FileBlock
|
||||
(*SaasRes)(nil), // 22: saasapi.SaasRes
|
||||
(*ReadRes)(nil), // 23: saasapi.ReadRes
|
||||
(*WriteRes)(nil), // 24: saasapi.WriteRes
|
||||
(*ValueItem)(nil), // 25: saasapi.ValueItem
|
||||
(*TaskListRes)(nil), // 26: saasapi.TaskListRes
|
||||
}
|
||||
var file_cmd_proto_depIdxs = []int32{
|
||||
0, // 0: saasapi.SaasReq.userid_type:type_name -> saasapi.UserIdType
|
||||
5, // 1: saasapi.SaasReq.read:type_name -> saasapi.Read
|
||||
7, // 2: saasapi.SaasReq.write:type_name -> saasapi.Write
|
||||
13, // 3: saasapi.SaasReq.column_write:type_name -> saasapi.ColumnWrite
|
||||
14, // 4: saasapi.SaasReq.task_create:type_name -> saasapi.Task
|
||||
15, // 5: saasapi.SaasReq.task_list:type_name -> saasapi.TaskList
|
||||
16, // 6: saasapi.SaasReq.task_run:type_name -> saasapi.TaskRun
|
||||
17, // 7: saasapi.SaasReq.task_delete:type_name -> saasapi.TaskDelete
|
||||
18, // 8: saasapi.SaasReq.task_info:type_name -> saasapi.TaskInfo
|
||||
6, // 9: saasapi.Read.read_items:type_name -> saasapi.ReadItem
|
||||
8, // 10: saasapi.Write.write_items:type_name -> saasapi.WriteItem
|
||||
9, // 11: saasapi.WriteItem.write_bytes:type_name -> saasapi.Bytes
|
||||
10, // 12: saasapi.WriteItem.write_uint32s:type_name -> saasapi.Uint32s
|
||||
11, // 13: saasapi.WriteItem.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
12, // 14: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
9, // 15: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
|
||||
10, // 16: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
|
||||
11, // 17: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
19, // 18: saasapi.Task.task_file_infos:type_name -> saasapi.FileInfo
|
||||
3, // 19: saasapi.Task.status:type_name -> saasapi.TaskStatus
|
||||
3, // 20: saasapi.TaskList.status_filter:type_name -> saasapi.TaskStatus
|
||||
20, // 21: saasapi.FileInfo.file_blocks:type_name -> saasapi.FileBlock
|
||||
1, // 22: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
|
||||
22, // 23: saasapi.SaasRes.read_res:type_name -> saasapi.ReadRes
|
||||
23, // 24: saasapi.SaasRes.write_res:type_name -> saasapi.WriteRes
|
||||
14, // 25: saasapi.SaasRes.task_create_res:type_name -> saasapi.Task
|
||||
25, // 26: saasapi.SaasRes.task_list_res:type_name -> saasapi.TaskListRes
|
||||
14, // 27: saasapi.SaasRes.task_run_res:type_name -> saasapi.Task
|
||||
14, // 28: saasapi.SaasRes.task_delete_res:type_name -> saasapi.Task
|
||||
14, // 29: saasapi.SaasRes.task_info_res:type_name -> saasapi.Task
|
||||
24, // 30: saasapi.ReadRes.cmd_res:type_name -> saasapi.ValueItem
|
||||
24, // 31: saasapi.WriteRes.cmd_res:type_name -> saasapi.ValueItem
|
||||
2, // 32: saasapi.ValueItem.cmd_code:type_name -> saasapi.CmdErrorCode
|
||||
12, // 33: saasapi.ValueItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
14, // 34: saasapi.TaskListRes.tasks:type_name -> saasapi.Task
|
||||
6, // 1: saasapi.SaasReq.read:type_name -> saasapi.Read
|
||||
8, // 2: saasapi.SaasReq.write:type_name -> saasapi.Write
|
||||
14, // 3: saasapi.SaasReq.column_write:type_name -> saasapi.ColumnWrite
|
||||
15, // 4: saasapi.SaasReq.task_create:type_name -> saasapi.Task
|
||||
16, // 5: saasapi.SaasReq.task_list:type_name -> saasapi.TaskList
|
||||
17, // 6: saasapi.SaasReq.task_run:type_name -> saasapi.TaskRun
|
||||
18, // 7: saasapi.SaasReq.task_delete:type_name -> saasapi.TaskDelete
|
||||
19, // 8: saasapi.SaasReq.task_info:type_name -> saasapi.TaskInfo
|
||||
7, // 9: saasapi.Read.read_items:type_name -> saasapi.ReadItem
|
||||
9, // 10: saasapi.Write.write_items:type_name -> saasapi.WriteItem
|
||||
10, // 11: saasapi.WriteItem.write_bytes:type_name -> saasapi.Bytes
|
||||
11, // 12: saasapi.WriteItem.write_uint32s:type_name -> saasapi.Uint32s
|
||||
12, // 13: saasapi.WriteItem.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
13, // 14: saasapi.FlagsWithExpire.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
10, // 15: saasapi.ColumnWrite.write_bytes:type_name -> saasapi.Bytes
|
||||
11, // 16: saasapi.ColumnWrite.write_uint32s:type_name -> saasapi.Uint32s
|
||||
12, // 17: saasapi.ColumnWrite.write_flags_with_expire:type_name -> saasapi.FlagsWithExpire
|
||||
20, // 18: saasapi.Task.task_file_infos:type_name -> saasapi.FileInfo
|
||||
4, // 19: saasapi.Task.status:type_name -> saasapi.TaskStatus
|
||||
4, // 20: saasapi.TaskList.status_filter:type_name -> saasapi.TaskStatus
|
||||
21, // 21: saasapi.FileInfo.file_blocks:type_name -> saasapi.FileBlock
|
||||
2, // 22: saasapi.SaasRes.code:type_name -> saasapi.ErrorCode
|
||||
23, // 23: saasapi.SaasRes.read_res:type_name -> saasapi.ReadRes
|
||||
24, // 24: saasapi.SaasRes.write_res:type_name -> saasapi.WriteRes
|
||||
15, // 25: saasapi.SaasRes.task_create_res:type_name -> saasapi.Task
|
||||
26, // 26: saasapi.SaasRes.task_list_res:type_name -> saasapi.TaskListRes
|
||||
15, // 27: saasapi.SaasRes.task_run_res:type_name -> saasapi.Task
|
||||
15, // 28: saasapi.SaasRes.task_delete_res:type_name -> saasapi.Task
|
||||
15, // 29: saasapi.SaasRes.task_info_res:type_name -> saasapi.Task
|
||||
25, // 30: saasapi.ReadRes.cmd_res:type_name -> saasapi.ValueItem
|
||||
25, // 31: saasapi.WriteRes.cmd_res:type_name -> saasapi.ValueItem
|
||||
3, // 32: saasapi.ValueItem.cmd_code:type_name -> saasapi.CmdErrorCode
|
||||
13, // 33: saasapi.ValueItem.flags_with_expire:type_name -> saasapi.FlagWithExpire
|
||||
15, // 34: saasapi.TaskListRes.tasks:type_name -> saasapi.Task
|
||||
35, // [35:35] is the sub-list for method output_type
|
||||
35, // [35:35] is the sub-list for method input_type
|
||||
35, // [35:35] is the sub-list for extension type_name
|
||||
@@ -2077,7 +2137,7 @@ func file_cmd_proto_init() {
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_proto_rawDesc), len(file_cmd_proto_rawDesc)),
|
||||
NumEnums: 4,
|
||||
NumEnums: 5,
|
||||
NumMessages: 22,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
|
||||
Reference in New Issue
Block a user