475 lines
14 KiB
Go
475 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v4.25.8
|
|
// source: task/task.proto
|
|
|
|
package task
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Response struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Response) Reset() {
|
|
*x = Response{}
|
|
mi := &file_task_task_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Response) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (x *Response) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Response) GetCode() int32 {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Response) GetMsg() string {
|
|
if x != nil {
|
|
return x.Msg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Response) GetData() string {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EmtpyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EmtpyRequest) Reset() {
|
|
*x = EmtpyRequest{}
|
|
mi := &file_task_task_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EmtpyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EmtpyRequest) ProtoMessage() {}
|
|
|
|
func (x *EmtpyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EmtpyRequest.ProtoReflect.Descriptor instead.
|
|
func (*EmtpyRequest) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type CreateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Time int32 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
|
|
Province int64 `protobuf:"varint,3,opt,name=province,proto3" json:"province,omitempty"`
|
|
ProvinceName string `protobuf:"bytes,4,opt,name=province_name,json=provinceName,proto3" json:"province_name,omitempty"`
|
|
Task int32 `protobuf:"varint,5,opt,name=task,proto3" json:"task,omitempty"`
|
|
Award float64 `protobuf:"fixed64,6,opt,name=award,proto3" json:"award,omitempty"`
|
|
ProductId int64 `protobuf:"varint,7,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateRequest) Reset() {
|
|
*x = CreateRequest{}
|
|
mi := &file_task_task_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateRequest) GetType() int32 {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateRequest) GetTime() int32 {
|
|
if x != nil {
|
|
return x.Time
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateRequest) GetProvince() int64 {
|
|
if x != nil {
|
|
return x.Province
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateRequest) GetProvinceName() string {
|
|
if x != nil {
|
|
return x.ProvinceName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateRequest) GetTask() int32 {
|
|
if x != nil {
|
|
return x.Task
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateRequest) GetAward() float64 {
|
|
if x != nil {
|
|
return x.Award
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateRequest) GetProductId() int64 {
|
|
if x != nil {
|
|
return x.ProductId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Task int32 `protobuf:"varint,2,opt,name=task,proto3" json:"task,omitempty"`
|
|
Award float64 `protobuf:"fixed64,3,opt,name=award,proto3" json:"award,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EditRequest) Reset() {
|
|
*x = EditRequest{}
|
|
mi := &file_task_task_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EditRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EditRequest) ProtoMessage() {}
|
|
|
|
func (x *EditRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EditRequest.ProtoReflect.Descriptor instead.
|
|
func (*EditRequest) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *EditRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EditRequest) GetTask() int32 {
|
|
if x != nil {
|
|
return x.Task
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EditRequest) GetAward() float64 {
|
|
if x != nil {
|
|
return x.Award
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type IdRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IdRequest) Reset() {
|
|
*x = IdRequest{}
|
|
mi := &file_task_task_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IdRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IdRequest) ProtoMessage() {}
|
|
|
|
func (x *IdRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.
|
|
func (*IdRequest) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *IdRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatusRequest) Reset() {
|
|
*x = StatusRequest{}
|
|
mi := &file_task_task_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusRequest) ProtoMessage() {}
|
|
|
|
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_task_task_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_task_task_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *StatusRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusRequest) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatusRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_task_task_proto protoreflect.FileDescriptor
|
|
|
|
const file_task_task_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0ftask/task.proto\x12\x04task\x1a\x1cgoogle/api/annotations.proto\"D\n" +
|
|
"\bResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
|
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\tR\x04data\"\x0e\n" +
|
|
"\fEmtpyRequest\"\xc1\x01\n" +
|
|
"\rCreateRequest\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\x05R\x04type\x12\x12\n" +
|
|
"\x04time\x18\x02 \x01(\x05R\x04time\x12\x1a\n" +
|
|
"\bprovince\x18\x03 \x01(\x03R\bprovince\x12#\n" +
|
|
"\rprovince_name\x18\x04 \x01(\tR\fprovinceName\x12\x12\n" +
|
|
"\x04task\x18\x05 \x01(\x05R\x04task\x12\x14\n" +
|
|
"\x05award\x18\x06 \x01(\x01R\x05award\x12\x1d\n" +
|
|
"\n" +
|
|
"product_id\x18\a \x01(\x03R\tproductId\"G\n" +
|
|
"\vEditRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
|
"\x04task\x18\x02 \x01(\x05R\x04task\x12\x14\n" +
|
|
"\x05award\x18\x03 \x01(\x01R\x05award\"\x1b\n" +
|
|
"\tIdRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\"O\n" +
|
|
"\rStatusRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\x05R\x06status\x12\x16\n" +
|
|
"\x06reason\x18\x03 \x01(\tR\x06reason2\x8a\x03\n" +
|
|
"\x04Task\x12L\n" +
|
|
"\x05Items\x12\x12.task.EmtpyRequest\x1a\x0e.task.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/task/items\x12G\n" +
|
|
"\x04Info\x12\x0f.task.IdRequest\x1a\x0e.task.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\x12\x13/admin/v3/task/info\x12O\n" +
|
|
"\x06Create\x12\x13.task.CreateRequest\x1a\x0e.task.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/admin/v3/task/create\x12I\n" +
|
|
"\x04Edit\x12\x11.task.EditRequest\x1a\x0e.task.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/admin/v3/task/edit\x12O\n" +
|
|
"\x06Status\x12\x13.task.StatusRequest\x1a\x0e.task.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/admin/v3/task/statusB\bZ\x06./taskb\x06proto3"
|
|
|
|
var (
|
|
file_task_task_proto_rawDescOnce sync.Once
|
|
file_task_task_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_task_task_proto_rawDescGZIP() []byte {
|
|
file_task_task_proto_rawDescOnce.Do(func() {
|
|
file_task_task_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_task_task_proto_rawDesc), len(file_task_task_proto_rawDesc)))
|
|
})
|
|
return file_task_task_proto_rawDescData
|
|
}
|
|
|
|
var file_task_task_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_task_task_proto_goTypes = []any{
|
|
(*Response)(nil), // 0: task.Response
|
|
(*EmtpyRequest)(nil), // 1: task.EmtpyRequest
|
|
(*CreateRequest)(nil), // 2: task.CreateRequest
|
|
(*EditRequest)(nil), // 3: task.EditRequest
|
|
(*IdRequest)(nil), // 4: task.IdRequest
|
|
(*StatusRequest)(nil), // 5: task.StatusRequest
|
|
}
|
|
var file_task_task_proto_depIdxs = []int32{
|
|
1, // 0: task.Task.Items:input_type -> task.EmtpyRequest
|
|
4, // 1: task.Task.Info:input_type -> task.IdRequest
|
|
2, // 2: task.Task.Create:input_type -> task.CreateRequest
|
|
3, // 3: task.Task.Edit:input_type -> task.EditRequest
|
|
5, // 4: task.Task.Status:input_type -> task.StatusRequest
|
|
0, // 5: task.Task.Items:output_type -> task.Response
|
|
0, // 6: task.Task.Info:output_type -> task.Response
|
|
0, // 7: task.Task.Create:output_type -> task.Response
|
|
0, // 8: task.Task.Edit:output_type -> task.Response
|
|
0, // 9: task.Task.Status:output_type -> task.Response
|
|
5, // [5:10] is the sub-list for method output_type
|
|
0, // [0:5] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_task_task_proto_init() }
|
|
func file_task_task_proto_init() {
|
|
if File_task_task_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_task_task_proto_rawDesc), len(file_task_task_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_task_task_proto_goTypes,
|
|
DependencyIndexes: file_task_task_proto_depIdxs,
|
|
MessageInfos: file_task_task_proto_msgTypes,
|
|
}.Build()
|
|
File_task_task_proto = out.File
|
|
file_task_task_proto_goTypes = nil
|
|
file_task_task_proto_depIdxs = nil
|
|
}
|