dto

package
v0.0.0-...-23f538b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gitee_com_jingshanccc_course_file_proto_dto_file_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FileDto

type FileDto struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Path       string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Suffix     string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Size       int64  `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Key        string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`                //文件标识
	Shard      string `protobuf:"bytes,7,opt,name=shard,proto3" json:"shard,omitempty"`            //分片|base64格式
	ShardIndex int32  `protobuf:"varint,8,opt,name=shardIndex,proto3" json:"shardIndex,omitempty"` // 已上传分片数
	ShardTotal int32  `protobuf:"varint,9,opt,name=shardTotal,proto3" json:"shardTotal,omitempty"` // 分片总数
	ShardSize  int32  `protobuf:"varint,10,opt,name=shardSize,proto3" json:"shardSize,omitempty"`  //分片大小
	CreateAt   string `protobuf:"bytes,11,opt,name=createAt,proto3" json:"createAt,omitempty"`
	UpdateAt   string `protobuf:"bytes,12,opt,name=updateAt,proto3" json:"updateAt,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDto) Descriptor deprecated

func (*FileDto) Descriptor() ([]byte, []int)

Deprecated: Use FileDto.ProtoReflect.Descriptor instead.

func (*FileDto) GetCreateAt

func (x *FileDto) GetCreateAt() string

func (*FileDto) GetId

func (x *FileDto) GetId() string

func (*FileDto) GetKey

func (x *FileDto) GetKey() string

func (*FileDto) GetName

func (x *FileDto) GetName() string

func (*FileDto) GetPath

func (x *FileDto) GetPath() string

func (*FileDto) GetShard

func (x *FileDto) GetShard() string

func (*FileDto) GetShardIndex

func (x *FileDto) GetShardIndex() int32

func (*FileDto) GetShardSize

func (x *FileDto) GetShardSize() int32

func (*FileDto) GetShardTotal

func (x *FileDto) GetShardTotal() int32

func (*FileDto) GetSize

func (x *FileDto) GetSize() int64

func (*FileDto) GetSuffix

func (x *FileDto) GetSuffix() string

func (*FileDto) GetUpdateAt

func (x *FileDto) GetUpdateAt() string

func (*FileDto) ProtoMessage

func (*FileDto) ProtoMessage()

func (*FileDto) ProtoReflect

func (x *FileDto) ProtoReflect() protoreflect.Message

func (*FileDto) Reset

func (x *FileDto) Reset()

func (*FileDto) String

func (x *FileDto) String() string

type FileShardDto

type FileShardDto struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Key   string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Index int32  `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	Size  int32  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	Total int32  `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
	Blob  []byte `protobuf:"bytes,6,opt,name=blob,proto3" json:"blob,omitempty"`
	// contains filtered or unexported fields
}

func (*FileShardDto) Descriptor deprecated

func (*FileShardDto) Descriptor() ([]byte, []int)

Deprecated: Use FileShardDto.ProtoReflect.Descriptor instead.

func (*FileShardDto) GetBlob

func (x *FileShardDto) GetBlob() []byte

func (*FileShardDto) GetId

func (x *FileShardDto) GetId() int32

func (*FileShardDto) GetIndex

func (x *FileShardDto) GetIndex() int32

func (*FileShardDto) GetKey

func (x *FileShardDto) GetKey() string

func (*FileShardDto) GetSize

func (x *FileShardDto) GetSize() int32

func (*FileShardDto) GetTotal

func (x *FileShardDto) GetTotal() int32

func (*FileShardDto) ProtoMessage

func (*FileShardDto) ProtoMessage()

func (*FileShardDto) ProtoReflect

func (x *FileShardDto) ProtoReflect() protoreflect.Message

func (*FileShardDto) Reset

func (x *FileShardDto) Reset()

func (*FileShardDto) String

func (x *FileShardDto) String() string

type VerifyRes

type VerifyRes struct {
	ShouldUpload bool     `protobuf:"varint,1,opt,name=shouldUpload,proto3" json:"shouldUpload,omitempty"`        //是否完成上传
	UploadedList []int32  `protobuf:"varint,2,rep,packed,name=uploadedList,proto3" json:"uploadedList,omitempty"` //已完成上传的分片索引
	File         *FileDto `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`                         //若已完成上传 则将已上传的文件记录返回
	// contains filtered or unexported fields
}

func (*VerifyRes) Descriptor deprecated

func (*VerifyRes) Descriptor() ([]byte, []int)

Deprecated: Use VerifyRes.ProtoReflect.Descriptor instead.

func (*VerifyRes) GetFile

func (x *VerifyRes) GetFile() *FileDto

func (*VerifyRes) GetShouldUpload

func (x *VerifyRes) GetShouldUpload() bool

func (*VerifyRes) GetUploadedList

func (x *VerifyRes) GetUploadedList() []int32

func (*VerifyRes) ProtoMessage

func (*VerifyRes) ProtoMessage()

func (*VerifyRes) ProtoReflect

func (x *VerifyRes) ProtoReflect() protoreflect.Message

func (*VerifyRes) Reset

func (x *VerifyRes) Reset()

func (*VerifyRes) String

func (x *VerifyRes) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL