otto
2 weeks ago
9 changed files with 2194 additions and 0 deletions
@ -0,0 +1,128 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.32.0
|
||||
// protoc v4.25.1
|
||||
// source: app_gateway/v1/activity_gateway.proto
|
||||
|
||||
package v1 |
||||
|
||||
import ( |
||||
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/activity_gateway/v1" |
||||
_ "google.golang.org/genproto/googleapis/api/annotations" |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
) |
||||
|
||||
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) |
||||
) |
||||
|
||||
var File_app_gateway_v1_activity_gateway_proto protoreflect.FileDescriptor |
||||
|
||||
var file_app_gateway_v1_activity_gateway_proto_rawDesc = []byte{ |
||||
0x0a, 0x25, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, |
||||
0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, |
||||
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, |
||||
0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
||||
0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, |
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, |
||||
0x61, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x70, |
||||
0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe8, 0x04, 0x0a, 0x0f, |
||||
0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, |
||||
0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, |
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, |
||||
0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, |
||||
0x67, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, |
||||
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, |
||||
0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, |
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, |
||||
0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, |
||||
0x2f, 0x62, 0x61, 0x69, 0x6c, 0x79, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x2f, 0x6c, 0x69, 0x73, 0x74, |
||||
0x12, 0x9c, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x69, 0x6c, 0x79, |
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x70, |
||||
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, |
||||
0x74, 0x65, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, |
||||
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, |
||||
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, |
||||
0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, |
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, |
||||
0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, |
||||
0x2f, 0x62, 0x61, 0x69, 0x6c, 0x79, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x2f, 0x61, 0x64, 0x64, 0x12, |
||||
0x8c, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, |
||||
0x4c, 0x69, 0x73, 0x74, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, |
||||
0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, |
||||
0x67, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, |
||||
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, |
||||
0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, |
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, |
||||
0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, |
||||
0x2f, 0x61, 0x63, 0x63, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x95, |
||||
0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, |
||||
0x79, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, |
||||
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, |
||||
0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
||||
0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, |
||||
0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, |
||||
0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, |
||||
0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, |
||||
0x69, 0x76, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x2f, 0x72, |
||||
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x2e, 0x67, 0x7a, |
||||
0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69, 0x79, |
||||
0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, |
||||
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x76, |
||||
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var file_app_gateway_v1_activity_gateway_proto_goTypes = []interface{}{ |
||||
(*v1.GetDailySignTaskRequest)(nil), // 0: app_gateway.v1.GetDailySignTaskRequest
|
||||
(*v1.CreateDailySignRecordRequest)(nil), // 1: app_gateway.v1.CreateDailySignRecordRequest
|
||||
(*v1.AccDailySignListRequest)(nil), // 2: app_gateway.v1.AccDailySignListRequest
|
||||
(*v1.CreateAccDailySignRequest)(nil), // 3: app_gateway.v1.CreateAccDailySignRequest
|
||||
(*v1.GetDailySignTaskResponse)(nil), // 4: app_gateway.v1.GetDailySignTaskResponse
|
||||
(*v1.CreateDailySignRecordResponse)(nil), // 5: app_gateway.v1.CreateDailySignRecordResponse
|
||||
(*v1.AccDailySignListResponse)(nil), // 6: app_gateway.v1.AccDailySignListResponse
|
||||
(*v1.CreateAccDailySignResponse)(nil), // 7: app_gateway.v1.CreateAccDailySignResponse
|
||||
} |
||||
var file_app_gateway_v1_activity_gateway_proto_depIdxs = []int32{ |
||||
0, // 0: app_gateway.v1.ActivityGateway.GetDailySignTask:input_type -> app_gateway.v1.GetDailySignTaskRequest
|
||||
1, // 1: app_gateway.v1.ActivityGateway.CreateDailySignRecord:input_type -> app_gateway.v1.CreateDailySignRecordRequest
|
||||
2, // 2: app_gateway.v1.ActivityGateway.AccDailySignList:input_type -> app_gateway.v1.AccDailySignListRequest
|
||||
3, // 3: app_gateway.v1.ActivityGateway.CreateAccDailySign:input_type -> app_gateway.v1.CreateAccDailySignRequest
|
||||
4, // 4: app_gateway.v1.ActivityGateway.GetDailySignTask:output_type -> app_gateway.v1.GetDailySignTaskResponse
|
||||
5, // 5: app_gateway.v1.ActivityGateway.CreateDailySignRecord:output_type -> app_gateway.v1.CreateDailySignRecordResponse
|
||||
6, // 6: app_gateway.v1.ActivityGateway.AccDailySignList:output_type -> app_gateway.v1.AccDailySignListResponse
|
||||
7, // 7: app_gateway.v1.ActivityGateway.CreateAccDailySign:output_type -> app_gateway.v1.CreateAccDailySignResponse
|
||||
4, // [4:8] is the sub-list for method output_type
|
||||
0, // [0:4] 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_app_gateway_v1_activity_gateway_proto_init() } |
||||
func file_app_gateway_v1_activity_gateway_proto_init() { |
||||
if File_app_gateway_v1_activity_gateway_proto != nil { |
||||
return |
||||
} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_app_gateway_v1_activity_gateway_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 0, |
||||
NumExtensions: 0, |
||||
NumServices: 1, |
||||
}, |
||||
GoTypes: file_app_gateway_v1_activity_gateway_proto_goTypes, |
||||
DependencyIndexes: file_app_gateway_v1_activity_gateway_proto_depIdxs, |
||||
}.Build() |
||||
File_app_gateway_v1_activity_gateway_proto = out.File |
||||
file_app_gateway_v1_activity_gateway_proto_rawDesc = nil |
||||
file_app_gateway_v1_activity_gateway_proto_goTypes = nil |
||||
file_app_gateway_v1_activity_gateway_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,41 @@
|
||||
syntax = "proto3"; |
||||
|
||||
package app_gateway.v1; |
||||
option go_package = "git.gz.internal.jumaiyx.cn/jm/jmproto/app_gateway/v1;v1"; |
||||
import "google/api/annotations.proto"; |
||||
import "app_gateway/v1/activity_params.proto"; |
||||
|
||||
|
||||
service ActivityGateway { |
||||
// 获取一周内每日签到列表 |
||||
rpc GetDailySignTask(GetDailySignTaskRequest) returns (GetDailySignTaskResponse){ |
||||
option (google.api.http) = { |
||||
post: "/v1/activity/baily-sign/list" |
||||
body: "*" |
||||
}; |
||||
}; |
||||
|
||||
// 用户创建每日签到 |
||||
rpc CreateDailySignRecord(CreateDailySignRecordRequest) returns (CreateDailySignRecordResponse){ |
||||
option (google.api.http) = { |
||||
post: "/v1/activity/baily-sign/add" |
||||
body: "*" |
||||
}; |
||||
}; |
||||
|
||||
// 累计签到记录列表 |
||||
rpc AccDailySignList(AccDailySignListRequest)returns(AccDailySignListResponse){ |
||||
option (google.api.http) = { |
||||
post: "/v1/activity/acc-sign/list" |
||||
body: "*" |
||||
}; |
||||
} |
||||
|
||||
// 领取累计签到的物品 |
||||
rpc CreateAccDailySign(CreateAccDailySignRequest)returns(CreateAccDailySignResponse){ |
||||
option (google.api.http) = { |
||||
post: "/v1/activity/acc-sign/receive" |
||||
body: "*" |
||||
}; |
||||
} |
||||
} |
@ -0,0 +1,329 @@
|
||||
{ |
||||
"swagger": "2.0", |
||||
"info": { |
||||
"title": "app_gateway/v1/activity_gateway.proto", |
||||
"version": "version not set" |
||||
}, |
||||
"tags": [ |
||||
{ |
||||
"name": "ActivityGateway" |
||||
} |
||||
], |
||||
"consumes": [ |
||||
"application/json" |
||||
], |
||||
"produces": [ |
||||
"application/json" |
||||
], |
||||
"paths": { |
||||
"/v1/activity/acc-sign/list": { |
||||
"post": { |
||||
"summary": "累计签到记录列表", |
||||
"operationId": "ActivityGateway_AccDailySignList", |
||||
"responses": { |
||||
"200": { |
||||
"description": "A successful response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/v1AccDailySignListResponse" |
||||
} |
||||
}, |
||||
"default": { |
||||
"description": "An unexpected error response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/rpcStatus" |
||||
} |
||||
} |
||||
}, |
||||
"parameters": [ |
||||
{ |
||||
"name": "body", |
||||
"in": "body", |
||||
"required": true, |
||||
"schema": { |
||||
"$ref": "#/definitions/v1AccDailySignListRequest" |
||||
} |
||||
} |
||||
], |
||||
"tags": [ |
||||
"ActivityGateway" |
||||
] |
||||
} |
||||
}, |
||||
"/v1/activity/acc-sign/receive": { |
||||
"post": { |
||||
"summary": "领取累计签到的物品", |
||||
"operationId": "ActivityGateway_CreateAccDailySign", |
||||
"responses": { |
||||
"200": { |
||||
"description": "A successful response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/v1CreateAccDailySignResponse" |
||||
} |
||||
}, |
||||
"default": { |
||||
"description": "An unexpected error response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/rpcStatus" |
||||
} |
||||
} |
||||
}, |
||||
"parameters": [ |
||||
{ |
||||
"name": "body", |
||||
"in": "body", |
||||
"required": true, |
||||
"schema": { |
||||
"$ref": "#/definitions/v1CreateAccDailySignRequest" |
||||
} |
||||
} |
||||
], |
||||
"tags": [ |
||||
"ActivityGateway" |
||||
] |
||||
} |
||||
}, |
||||
"/v1/activity/baily-sign/add": { |
||||
"post": { |
||||
"summary": "用户创建每日签到", |
||||
"operationId": "ActivityGateway_CreateDailySignRecord", |
||||
"responses": { |
||||
"200": { |
||||
"description": "A successful response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/v1CreateDailySignRecordResponse" |
||||
} |
||||
}, |
||||
"default": { |
||||
"description": "An unexpected error response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/rpcStatus" |
||||
} |
||||
} |
||||
}, |
||||
"parameters": [ |
||||
{ |
||||
"name": "body", |
||||
"in": "body", |
||||
"required": true, |
||||
"schema": { |
||||
"$ref": "#/definitions/v1CreateDailySignRecordRequest" |
||||
} |
||||
} |
||||
], |
||||
"tags": [ |
||||
"ActivityGateway" |
||||
] |
||||
} |
||||
}, |
||||
"/v1/activity/baily-sign/list": { |
||||
"post": { |
||||
"summary": "获取一周内每日签到列表", |
||||
"operationId": "ActivityGateway_GetDailySignTask", |
||||
"responses": { |
||||
"200": { |
||||
"description": "A successful response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/v1GetDailySignTaskResponse" |
||||
} |
||||
}, |
||||
"default": { |
||||
"description": "An unexpected error response.", |
||||
"schema": { |
||||
"$ref": "#/definitions/rpcStatus" |
||||
} |
||||
} |
||||
}, |
||||
"parameters": [ |
||||
{ |
||||
"name": "body", |
||||
"in": "body", |
||||
"required": true, |
||||
"schema": { |
||||
"$ref": "#/definitions/v1GetDailySignTaskRequest" |
||||
} |
||||
} |
||||
], |
||||
"tags": [ |
||||
"ActivityGateway" |
||||
] |
||||
} |
||||
} |
||||
}, |
||||
"definitions": { |
||||
"protobufAny": { |
||||
"type": "object", |
||||
"properties": { |
||||
"@type": { |
||||
"type": "string" |
||||
} |
||||
}, |
||||
"additionalProperties": {} |
||||
}, |
||||
"rpcStatus": { |
||||
"type": "object", |
||||
"properties": { |
||||
"code": { |
||||
"type": "integer", |
||||
"format": "int32" |
||||
}, |
||||
"message": { |
||||
"type": "string" |
||||
}, |
||||
"details": { |
||||
"type": "array", |
||||
"items": { |
||||
"type": "object", |
||||
"$ref": "#/definitions/protobufAny" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"v1AccDailySignListRequest": { |
||||
"type": "object" |
||||
}, |
||||
"v1AccDailySignListResponse": { |
||||
"type": "object", |
||||
"properties": { |
||||
"day_num": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "当月已经累计签到的天数" |
||||
}, |
||||
"items": { |
||||
"type": "array", |
||||
"items": { |
||||
"type": "object", |
||||
"$ref": "#/definitions/v1AccDailySignListResponseItem" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"v1AccDailySignListResponseItem": { |
||||
"type": "object", |
||||
"properties": { |
||||
"acc_daily_sign_id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "累积签到记录id" |
||||
}, |
||||
"type": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品" |
||||
}, |
||||
"number": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "数量" |
||||
}, |
||||
"obj": { |
||||
"$ref": "#/definitions/v1DailySignObj", |
||||
"title": "奖品对象" |
||||
}, |
||||
"status": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "领取状态:0.未能领取, 1.已经领取, 2.未领取" |
||||
}, |
||||
"day_num": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "积累天数可领取" |
||||
} |
||||
} |
||||
}, |
||||
"v1CreateAccDailySignRequest": { |
||||
"type": "object", |
||||
"properties": { |
||||
"acc_daily_sign_id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "累积签到记录id" |
||||
} |
||||
} |
||||
}, |
||||
"v1CreateAccDailySignResponse": { |
||||
"type": "object" |
||||
}, |
||||
"v1CreateDailySignRecordRequest": { |
||||
"type": "object", |
||||
"properties": { |
||||
"daily_sign_id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "签到id,不传默认当天记录签到" |
||||
} |
||||
} |
||||
}, |
||||
"v1CreateDailySignRecordResponse": { |
||||
"type": "object" |
||||
}, |
||||
"v1DailySignObj": { |
||||
"type": "object", |
||||
"properties": { |
||||
"id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "奖品id" |
||||
}, |
||||
"img_url": { |
||||
"type": "string", |
||||
"title": "奖品图片" |
||||
}, |
||||
"name": { |
||||
"type": "string", |
||||
"title": "奖品名称" |
||||
} |
||||
} |
||||
}, |
||||
"v1GetDailySignTaskRequest": { |
||||
"type": "object" |
||||
}, |
||||
"v1GetDailySignTaskResponse": { |
||||
"type": "object", |
||||
"properties": { |
||||
"items": { |
||||
"type": "array", |
||||
"items": { |
||||
"type": "object", |
||||
"$ref": "#/definitions/v1GetDailySignTaskResponseItem" |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"v1GetDailySignTaskResponseItem": { |
||||
"type": "object", |
||||
"properties": { |
||||
"daily_sign_id": { |
||||
"type": "string", |
||||
"format": "int64", |
||||
"title": "签到id" |
||||
}, |
||||
"type": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品" |
||||
}, |
||||
"number": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "数量" |
||||
}, |
||||
"week": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "周" |
||||
}, |
||||
"obj": { |
||||
"$ref": "#/definitions/v1DailySignObj", |
||||
"title": "奖品对象" |
||||
}, |
||||
"status": { |
||||
"type": "integer", |
||||
"format": "int32", |
||||
"title": "签到状态:1.已签到, 2.未签到" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,222 @@
|
||||
swagger: "2.0" |
||||
info: |
||||
title: app_gateway/v1/activity_gateway.proto |
||||
version: version not set |
||||
tags: |
||||
- name: ActivityGateway |
||||
consumes: |
||||
- application/json |
||||
produces: |
||||
- application/json |
||||
paths: |
||||
/v1/activity/acc-sign/list: |
||||
post: |
||||
summary: 累计签到记录列表 |
||||
operationId: ActivityGateway_AccDailySignList |
||||
responses: |
||||
"200": |
||||
description: A successful response. |
||||
schema: |
||||
$ref: '#/definitions/v1AccDailySignListResponse' |
||||
default: |
||||
description: An unexpected error response. |
||||
schema: |
||||
$ref: '#/definitions/rpcStatus' |
||||
parameters: |
||||
- name: body |
||||
in: body |
||||
required: true |
||||
schema: |
||||
$ref: '#/definitions/v1AccDailySignListRequest' |
||||
tags: |
||||
- ActivityGateway |
||||
/v1/activity/acc-sign/receive: |
||||
post: |
||||
summary: 领取累计签到的物品 |
||||
operationId: ActivityGateway_CreateAccDailySign |
||||
responses: |
||||
"200": |
||||
description: A successful response. |
||||
schema: |
||||
$ref: '#/definitions/v1CreateAccDailySignResponse' |
||||
default: |
||||
description: An unexpected error response. |
||||
schema: |
||||
$ref: '#/definitions/rpcStatus' |
||||
parameters: |
||||
- name: body |
||||
in: body |
||||
required: true |
||||
schema: |
||||
$ref: '#/definitions/v1CreateAccDailySignRequest' |
||||
tags: |
||||
- ActivityGateway |
||||
/v1/activity/baily-sign/add: |
||||
post: |
||||
summary: 用户创建每日签到 |
||||
operationId: ActivityGateway_CreateDailySignRecord |
||||
responses: |
||||
"200": |
||||
description: A successful response. |
||||
schema: |
||||
$ref: '#/definitions/v1CreateDailySignRecordResponse' |
||||
default: |
||||
description: An unexpected error response. |
||||
schema: |
||||
$ref: '#/definitions/rpcStatus' |
||||
parameters: |
||||
- name: body |
||||
in: body |
||||
required: true |
||||
schema: |
||||
$ref: '#/definitions/v1CreateDailySignRecordRequest' |
||||
tags: |
||||
- ActivityGateway |
||||
/v1/activity/baily-sign/list: |
||||
post: |
||||
summary: 获取一周内每日签到列表 |
||||
operationId: ActivityGateway_GetDailySignTask |
||||
responses: |
||||
"200": |
||||
description: A successful response. |
||||
schema: |
||||
$ref: '#/definitions/v1GetDailySignTaskResponse' |
||||
default: |
||||
description: An unexpected error response. |
||||
schema: |
||||
$ref: '#/definitions/rpcStatus' |
||||
parameters: |
||||
- name: body |
||||
in: body |
||||
required: true |
||||
schema: |
||||
$ref: '#/definitions/v1GetDailySignTaskRequest' |
||||
tags: |
||||
- ActivityGateway |
||||
definitions: |
||||
protobufAny: |
||||
type: object |
||||
properties: |
||||
'@type': |
||||
type: string |
||||
additionalProperties: {} |
||||
rpcStatus: |
||||
type: object |
||||
properties: |
||||
code: |
||||
type: integer |
||||
format: int32 |
||||
message: |
||||
type: string |
||||
details: |
||||
type: array |
||||
items: |
||||
type: object |
||||
$ref: '#/definitions/protobufAny' |
||||
v1AccDailySignListRequest: |
||||
type: object |
||||
v1AccDailySignListResponse: |
||||
type: object |
||||
properties: |
||||
day_num: |
||||
type: string |
||||
format: int64 |
||||
title: 当月已经累计签到的天数 |
||||
items: |
||||
type: array |
||||
items: |
||||
type: object |
||||
$ref: '#/definitions/v1AccDailySignListResponseItem' |
||||
v1AccDailySignListResponseItem: |
||||
type: object |
||||
properties: |
||||
acc_daily_sign_id: |
||||
type: string |
||||
format: int64 |
||||
title: 累积签到记录id |
||||
type: |
||||
type: integer |
||||
format: int32 |
||||
title: 签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品 |
||||
number: |
||||
type: integer |
||||
format: int32 |
||||
title: 数量 |
||||
obj: |
||||
$ref: '#/definitions/v1DailySignObj' |
||||
title: 奖品对象 |
||||
status: |
||||
type: integer |
||||
format: int32 |
||||
title: 领取状态:0.未能领取, 1.已经领取, 2.未领取 |
||||
day_num: |
||||
type: integer |
||||
format: int32 |
||||
title: 积累天数可领取 |
||||
v1CreateAccDailySignRequest: |
||||
type: object |
||||
properties: |
||||
acc_daily_sign_id: |
||||
type: string |
||||
format: int64 |
||||
title: 累积签到记录id |
||||
v1CreateAccDailySignResponse: |
||||
type: object |
||||
v1CreateDailySignRecordRequest: |
||||
type: object |
||||
properties: |
||||
daily_sign_id: |
||||
type: string |
||||
format: int64 |
||||
title: 签到id,不传默认当天记录签到 |
||||
v1CreateDailySignRecordResponse: |
||||
type: object |
||||
v1DailySignObj: |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: string |
||||
format: int64 |
||||
title: 奖品id |
||||
img_url: |
||||
type: string |
||||
title: 奖品图片 |
||||
name: |
||||
type: string |
||||
title: 奖品名称 |
||||
v1GetDailySignTaskRequest: |
||||
type: object |
||||
v1GetDailySignTaskResponse: |
||||
type: object |
||||
properties: |
||||
items: |
||||
type: array |
||||
items: |
||||
type: object |
||||
$ref: '#/definitions/v1GetDailySignTaskResponseItem' |
||||
v1GetDailySignTaskResponseItem: |
||||
type: object |
||||
properties: |
||||
daily_sign_id: |
||||
type: string |
||||
format: int64 |
||||
title: 签到id |
||||
type: |
||||
type: integer |
||||
format: int32 |
||||
title: 签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品 |
||||
number: |
||||
type: integer |
||||
format: int32 |
||||
title: 数量 |
||||
week: |
||||
type: integer |
||||
format: int32 |
||||
title: 周 |
||||
obj: |
||||
$ref: '#/definitions/v1DailySignObj' |
||||
title: 奖品对象 |
||||
status: |
||||
type: integer |
||||
format: int32 |
||||
title: 签到状态:1.已签到, 2.未签到 |
@ -0,0 +1,229 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc v4.25.1
|
||||
// source: app_gateway/v1/activity_gateway.proto
|
||||
|
||||
package v1 |
||||
|
||||
import ( |
||||
context "context" |
||||
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/activity_gateway/v1" |
||||
grpc "google.golang.org/grpc" |
||||
codes "google.golang.org/grpc/codes" |
||||
status "google.golang.org/grpc/status" |
||||
) |
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7 |
||||
|
||||
const ( |
||||
ActivityGateway_GetDailySignTask_FullMethodName = "/app_gateway.v1.ActivityGateway/GetDailySignTask" |
||||
ActivityGateway_CreateDailySignRecord_FullMethodName = "/app_gateway.v1.ActivityGateway/CreateDailySignRecord" |
||||
ActivityGateway_AccDailySignList_FullMethodName = "/app_gateway.v1.ActivityGateway/AccDailySignList" |
||||
ActivityGateway_CreateAccDailySign_FullMethodName = "/app_gateway.v1.ActivityGateway/CreateAccDailySign" |
||||
) |
||||
|
||||
// ActivityGatewayClient is the client API for ActivityGateway service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type ActivityGatewayClient interface { |
||||
// 获取一周内每日签到列表
|
||||
GetDailySignTask(ctx context.Context, in *v1.GetDailySignTaskRequest, opts ...grpc.CallOption) (*v1.GetDailySignTaskResponse, error) |
||||
// 用户创建每日签到
|
||||
CreateDailySignRecord(ctx context.Context, in *v1.CreateDailySignRecordRequest, opts ...grpc.CallOption) (*v1.CreateDailySignRecordResponse, error) |
||||
// 累计签到记录列表
|
||||
AccDailySignList(ctx context.Context, in *v1.AccDailySignListRequest, opts ...grpc.CallOption) (*v1.AccDailySignListResponse, error) |
||||
// 领取累计签到的物品
|
||||
CreateAccDailySign(ctx context.Context, in *v1.CreateAccDailySignRequest, opts ...grpc.CallOption) (*v1.CreateAccDailySignResponse, error) |
||||
} |
||||
|
||||
type activityGatewayClient struct { |
||||
cc grpc.ClientConnInterface |
||||
} |
||||
|
||||
func NewActivityGatewayClient(cc grpc.ClientConnInterface) ActivityGatewayClient { |
||||
return &activityGatewayClient{cc} |
||||
} |
||||
|
||||
func (c *activityGatewayClient) GetDailySignTask(ctx context.Context, in *v1.GetDailySignTaskRequest, opts ...grpc.CallOption) (*v1.GetDailySignTaskResponse, error) { |
||||
out := new(v1.GetDailySignTaskResponse) |
||||
err := c.cc.Invoke(ctx, ActivityGateway_GetDailySignTask_FullMethodName, in, out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return out, nil |
||||
} |
||||
|
||||
func (c *activityGatewayClient) CreateDailySignRecord(ctx context.Context, in *v1.CreateDailySignRecordRequest, opts ...grpc.CallOption) (*v1.CreateDailySignRecordResponse, error) { |
||||
out := new(v1.CreateDailySignRecordResponse) |
||||
err := c.cc.Invoke(ctx, ActivityGateway_CreateDailySignRecord_FullMethodName, in, out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return out, nil |
||||
} |
||||
|
||||
func (c *activityGatewayClient) AccDailySignList(ctx context.Context, in *v1.AccDailySignListRequest, opts ...grpc.CallOption) (*v1.AccDailySignListResponse, error) { |
||||
out := new(v1.AccDailySignListResponse) |
||||
err := c.cc.Invoke(ctx, ActivityGateway_AccDailySignList_FullMethodName, in, out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return out, nil |
||||
} |
||||
|
||||
func (c *activityGatewayClient) CreateAccDailySign(ctx context.Context, in *v1.CreateAccDailySignRequest, opts ...grpc.CallOption) (*v1.CreateAccDailySignResponse, error) { |
||||
out := new(v1.CreateAccDailySignResponse) |
||||
err := c.cc.Invoke(ctx, ActivityGateway_CreateAccDailySign_FullMethodName, in, out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return out, nil |
||||
} |
||||
|
||||
// ActivityGatewayServer is the server API for ActivityGateway service.
|
||||
// All implementations must embed UnimplementedActivityGatewayServer
|
||||
// for forward compatibility
|
||||
type ActivityGatewayServer interface { |
||||
// 获取一周内每日签到列表
|
||||
GetDailySignTask(context.Context, *v1.GetDailySignTaskRequest) (*v1.GetDailySignTaskResponse, error) |
||||
// 用户创建每日签到
|
||||
CreateDailySignRecord(context.Context, *v1.CreateDailySignRecordRequest) (*v1.CreateDailySignRecordResponse, error) |
||||
// 累计签到记录列表
|
||||
AccDailySignList(context.Context, *v1.AccDailySignListRequest) (*v1.AccDailySignListResponse, error) |
||||
// 领取累计签到的物品
|
||||
CreateAccDailySign(context.Context, *v1.CreateAccDailySignRequest) (*v1.CreateAccDailySignResponse, error) |
||||
mustEmbedUnimplementedActivityGatewayServer() |
||||
} |
||||
|
||||
// UnimplementedActivityGatewayServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedActivityGatewayServer struct { |
||||
} |
||||
|
||||
func (UnimplementedActivityGatewayServer) GetDailySignTask(context.Context, *v1.GetDailySignTaskRequest) (*v1.GetDailySignTaskResponse, error) { |
||||
return nil, status.Errorf(codes.Unimplemented, "method GetDailySignTask not implemented") |
||||
} |
||||
func (UnimplementedActivityGatewayServer) CreateDailySignRecord(context.Context, *v1.CreateDailySignRecordRequest) (*v1.CreateDailySignRecordResponse, error) { |
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateDailySignRecord not implemented") |
||||
} |
||||
func (UnimplementedActivityGatewayServer) AccDailySignList(context.Context, *v1.AccDailySignListRequest) (*v1.AccDailySignListResponse, error) { |
||||
return nil, status.Errorf(codes.Unimplemented, "method AccDailySignList not implemented") |
||||
} |
||||
func (UnimplementedActivityGatewayServer) CreateAccDailySign(context.Context, *v1.CreateAccDailySignRequest) (*v1.CreateAccDailySignResponse, error) { |
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateAccDailySign not implemented") |
||||
} |
||||
func (UnimplementedActivityGatewayServer) mustEmbedUnimplementedActivityGatewayServer() {} |
||||
|
||||
// UnsafeActivityGatewayServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ActivityGatewayServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeActivityGatewayServer interface { |
||||
mustEmbedUnimplementedActivityGatewayServer() |
||||
} |
||||
|
||||
func RegisterActivityGatewayServer(s grpc.ServiceRegistrar, srv ActivityGatewayServer) { |
||||
s.RegisterService(&ActivityGateway_ServiceDesc, srv) |
||||
} |
||||
|
||||
func _ActivityGateway_GetDailySignTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
||||
in := new(v1.GetDailySignTaskRequest) |
||||
if err := dec(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if interceptor == nil { |
||||
return srv.(ActivityGatewayServer).GetDailySignTask(ctx, in) |
||||
} |
||||
info := &grpc.UnaryServerInfo{ |
||||
Server: srv, |
||||
FullMethod: ActivityGateway_GetDailySignTask_FullMethodName, |
||||
} |
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.(ActivityGatewayServer).GetDailySignTask(ctx, req.(*v1.GetDailySignTaskRequest)) |
||||
} |
||||
return interceptor(ctx, in, info, handler) |
||||
} |
||||
|
||||
func _ActivityGateway_CreateDailySignRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
||||
in := new(v1.CreateDailySignRecordRequest) |
||||
if err := dec(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if interceptor == nil { |
||||
return srv.(ActivityGatewayServer).CreateDailySignRecord(ctx, in) |
||||
} |
||||
info := &grpc.UnaryServerInfo{ |
||||
Server: srv, |
||||
FullMethod: ActivityGateway_CreateDailySignRecord_FullMethodName, |
||||
} |
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.(ActivityGatewayServer).CreateDailySignRecord(ctx, req.(*v1.CreateDailySignRecordRequest)) |
||||
} |
||||
return interceptor(ctx, in, info, handler) |
||||
} |
||||
|
||||
func _ActivityGateway_AccDailySignList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
||||
in := new(v1.AccDailySignListRequest) |
||||
if err := dec(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if interceptor == nil { |
||||
return srv.(ActivityGatewayServer).AccDailySignList(ctx, in) |
||||
} |
||||
info := &grpc.UnaryServerInfo{ |
||||
Server: srv, |
||||
FullMethod: ActivityGateway_AccDailySignList_FullMethodName, |
||||
} |
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.(ActivityGatewayServer).AccDailySignList(ctx, req.(*v1.AccDailySignListRequest)) |
||||
} |
||||
return interceptor(ctx, in, info, handler) |
||||
} |
||||
|
||||
func _ActivityGateway_CreateAccDailySign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
||||
in := new(v1.CreateAccDailySignRequest) |
||||
if err := dec(in); err != nil { |
||||
return nil, err |
||||
} |
||||
if interceptor == nil { |
||||
return srv.(ActivityGatewayServer).CreateAccDailySign(ctx, in) |
||||
} |
||||
info := &grpc.UnaryServerInfo{ |
||||
Server: srv, |
||||
FullMethod: ActivityGateway_CreateAccDailySign_FullMethodName, |
||||
} |
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.(ActivityGatewayServer).CreateAccDailySign(ctx, req.(*v1.CreateAccDailySignRequest)) |
||||
} |
||||
return interceptor(ctx, in, info, handler) |
||||
} |
||||
|
||||
// ActivityGateway_ServiceDesc is the grpc.ServiceDesc for ActivityGateway service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var ActivityGateway_ServiceDesc = grpc.ServiceDesc{ |
||||
ServiceName: "app_gateway.v1.ActivityGateway", |
||||
HandlerType: (*ActivityGatewayServer)(nil), |
||||
Methods: []grpc.MethodDesc{ |
||||
{ |
||||
MethodName: "GetDailySignTask", |
||||
Handler: _ActivityGateway_GetDailySignTask_Handler, |
||||
}, |
||||
{ |
||||
MethodName: "CreateDailySignRecord", |
||||
Handler: _ActivityGateway_CreateDailySignRecord_Handler, |
||||
}, |
||||
{ |
||||
MethodName: "AccDailySignList", |
||||
Handler: _ActivityGateway_AccDailySignList_Handler, |
||||
}, |
||||
{ |
||||
MethodName: "CreateAccDailySign", |
||||
Handler: _ActivityGateway_CreateAccDailySign_Handler, |
||||
}, |
||||
}, |
||||
Streams: []grpc.StreamDesc{}, |
||||
Metadata: "app_gateway/v1/activity_gateway.proto", |
||||
} |
@ -0,0 +1,200 @@
|
||||
// Code generated by protoc-gen-go-http. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-http v2.7.2
|
||||
// - protoc v4.25.1
|
||||
// source: app_gateway/v1/activity_gateway.proto
|
||||
|
||||
package v1 |
||||
|
||||
import ( |
||||
context "context" |
||||
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/activity_gateway/v1" |
||||
http "github.com/go-kratos/kratos/v2/transport/http" |
||||
binding "github.com/go-kratos/kratos/v2/transport/http/binding" |
||||
) |
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the kratos package it is being compiled against.
|
||||
var _ = new(context.Context) |
||||
var _ = binding.EncodeURL |
||||
|
||||
const _ = http.SupportPackageIsVersion1 |
||||
|
||||
const OperationActivityGatewayAccDailySignList = "/app_gateway.v1.ActivityGateway/AccDailySignList" |
||||
const OperationActivityGatewayCreateAccDailySign = "/app_gateway.v1.ActivityGateway/CreateAccDailySign" |
||||
const OperationActivityGatewayCreateDailySignRecord = "/app_gateway.v1.ActivityGateway/CreateDailySignRecord" |
||||
const OperationActivityGatewayGetDailySignTask = "/app_gateway.v1.ActivityGateway/GetDailySignTask" |
||||
|
||||
type ActivityGatewayHTTPServer interface { |
||||
// AccDailySignList 累计签到记录列表
|
||||
AccDailySignList(context.Context, *v1.AccDailySignListRequest) (*v1.AccDailySignListResponse, error) |
||||
// CreateAccDailySign 领取累计签到的物品
|
||||
CreateAccDailySign(context.Context, *v1.CreateAccDailySignRequest) (*v1.CreateAccDailySignResponse, error) |
||||
// CreateDailySignRecord 用户创建每日签到
|
||||
CreateDailySignRecord(context.Context, *v1.CreateDailySignRecordRequest) (*v1.CreateDailySignRecordResponse, error) |
||||
// GetDailySignTask 获取一周内每日签到列表
|
||||
GetDailySignTask(context.Context, *v1.GetDailySignTaskRequest) (*v1.GetDailySignTaskResponse, error) |
||||
} |
||||
|
||||
func RegisterActivityGatewayHTTPServer(s *http.Server, srv ActivityGatewayHTTPServer) { |
||||
r := s.Route("/") |
||||
r.POST("/v1/activity/baily-sign/list", _ActivityGateway_GetDailySignTask0_HTTP_Handler(srv)) |
||||
r.POST("/v1/activity/baily-sign/add", _ActivityGateway_CreateDailySignRecord0_HTTP_Handler(srv)) |
||||
r.POST("/v1/activity/acc-sign/list", _ActivityGateway_AccDailySignList0_HTTP_Handler(srv)) |
||||
r.POST("/v1/activity/acc-sign/receive", _ActivityGateway_CreateAccDailySign0_HTTP_Handler(srv)) |
||||
} |
||||
|
||||
func _ActivityGateway_GetDailySignTask0_HTTP_Handler(srv ActivityGatewayHTTPServer) func(ctx http.Context) error { |
||||
return func(ctx http.Context) error { |
||||
var in v1.GetDailySignTaskRequest |
||||
if err := ctx.Bind(&in); err != nil { |
||||
return err |
||||
} |
||||
if err := ctx.BindQuery(&in); err != nil { |
||||
return err |
||||
} |
||||
http.SetOperation(ctx, OperationActivityGatewayGetDailySignTask) |
||||
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.GetDailySignTask(ctx, req.(*v1.GetDailySignTaskRequest)) |
||||
}) |
||||
out, err := h(ctx, &in) |
||||
if err != nil { |
||||
return err |
||||
} |
||||
reply := out.(*v1.GetDailySignTaskResponse) |
||||
return ctx.Result(200, reply) |
||||
} |
||||
} |
||||
|
||||
func _ActivityGateway_CreateDailySignRecord0_HTTP_Handler(srv ActivityGatewayHTTPServer) func(ctx http.Context) error { |
||||
return func(ctx http.Context) error { |
||||
var in v1.CreateDailySignRecordRequest |
||||
if err := ctx.Bind(&in); err != nil { |
||||
return err |
||||
} |
||||
if err := ctx.BindQuery(&in); err != nil { |
||||
return err |
||||
} |
||||
http.SetOperation(ctx, OperationActivityGatewayCreateDailySignRecord) |
||||
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.CreateDailySignRecord(ctx, req.(*v1.CreateDailySignRecordRequest)) |
||||
}) |
||||
out, err := h(ctx, &in) |
||||
if err != nil { |
||||
return err |
||||
} |
||||
reply := out.(*v1.CreateDailySignRecordResponse) |
||||
return ctx.Result(200, reply) |
||||
} |
||||
} |
||||
|
||||
func _ActivityGateway_AccDailySignList0_HTTP_Handler(srv ActivityGatewayHTTPServer) func(ctx http.Context) error { |
||||
return func(ctx http.Context) error { |
||||
var in v1.AccDailySignListRequest |
||||
if err := ctx.Bind(&in); err != nil { |
||||
return err |
||||
} |
||||
if err := ctx.BindQuery(&in); err != nil { |
||||
return err |
||||
} |
||||
http.SetOperation(ctx, OperationActivityGatewayAccDailySignList) |
||||
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.AccDailySignList(ctx, req.(*v1.AccDailySignListRequest)) |
||||
}) |
||||
out, err := h(ctx, &in) |
||||
if err != nil { |
||||
return err |
||||
} |
||||
reply := out.(*v1.AccDailySignListResponse) |
||||
return ctx.Result(200, reply) |
||||
} |
||||
} |
||||
|
||||
func _ActivityGateway_CreateAccDailySign0_HTTP_Handler(srv ActivityGatewayHTTPServer) func(ctx http.Context) error { |
||||
return func(ctx http.Context) error { |
||||
var in v1.CreateAccDailySignRequest |
||||
if err := ctx.Bind(&in); err != nil { |
||||
return err |
||||
} |
||||
if err := ctx.BindQuery(&in); err != nil { |
||||
return err |
||||
} |
||||
http.SetOperation(ctx, OperationActivityGatewayCreateAccDailySign) |
||||
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) { |
||||
return srv.CreateAccDailySign(ctx, req.(*v1.CreateAccDailySignRequest)) |
||||
}) |
||||
out, err := h(ctx, &in) |
||||
if err != nil { |
||||
return err |
||||
} |
||||
reply := out.(*v1.CreateAccDailySignResponse) |
||||
return ctx.Result(200, reply) |
||||
} |
||||
} |
||||
|
||||
type ActivityGatewayHTTPClient interface { |
||||
AccDailySignList(ctx context.Context, req *v1.AccDailySignListRequest, opts ...http.CallOption) (rsp *v1.AccDailySignListResponse, err error) |
||||
CreateAccDailySign(ctx context.Context, req *v1.CreateAccDailySignRequest, opts ...http.CallOption) (rsp *v1.CreateAccDailySignResponse, err error) |
||||
CreateDailySignRecord(ctx context.Context, req *v1.CreateDailySignRecordRequest, opts ...http.CallOption) (rsp *v1.CreateDailySignRecordResponse, err error) |
||||
GetDailySignTask(ctx context.Context, req *v1.GetDailySignTaskRequest, opts ...http.CallOption) (rsp *v1.GetDailySignTaskResponse, err error) |
||||
} |
||||
|
||||
type ActivityGatewayHTTPClientImpl struct { |
||||
cc *http.Client |
||||
} |
||||
|
||||
func NewActivityGatewayHTTPClient(client *http.Client) ActivityGatewayHTTPClient { |
||||
return &ActivityGatewayHTTPClientImpl{client} |
||||
} |
||||
|
||||
func (c *ActivityGatewayHTTPClientImpl) AccDailySignList(ctx context.Context, in *v1.AccDailySignListRequest, opts ...http.CallOption) (*v1.AccDailySignListResponse, error) { |
||||
var out v1.AccDailySignListResponse |
||||
pattern := "/v1/activity/acc-sign/list" |
||||
path := binding.EncodeURL(pattern, in, false) |
||||
opts = append(opts, http.Operation(OperationActivityGatewayAccDailySignList)) |
||||
opts = append(opts, http.PathTemplate(pattern)) |
||||
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return &out, err |
||||
} |
||||
|
||||
func (c *ActivityGatewayHTTPClientImpl) CreateAccDailySign(ctx context.Context, in *v1.CreateAccDailySignRequest, opts ...http.CallOption) (*v1.CreateAccDailySignResponse, error) { |
||||
var out v1.CreateAccDailySignResponse |
||||
pattern := "/v1/activity/acc-sign/receive" |
||||
path := binding.EncodeURL(pattern, in, false) |
||||
opts = append(opts, http.Operation(OperationActivityGatewayCreateAccDailySign)) |
||||
opts = append(opts, http.PathTemplate(pattern)) |
||||
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return &out, err |
||||
} |
||||
|
||||
func (c *ActivityGatewayHTTPClientImpl) CreateDailySignRecord(ctx context.Context, in *v1.CreateDailySignRecordRequest, opts ...http.CallOption) (*v1.CreateDailySignRecordResponse, error) { |
||||
var out v1.CreateDailySignRecordResponse |
||||
pattern := "/v1/activity/baily-sign/add" |
||||
path := binding.EncodeURL(pattern, in, false) |
||||
opts = append(opts, http.Operation(OperationActivityGatewayCreateDailySignRecord)) |
||||
opts = append(opts, http.PathTemplate(pattern)) |
||||
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return &out, err |
||||
} |
||||
|
||||
func (c *ActivityGatewayHTTPClientImpl) GetDailySignTask(ctx context.Context, in *v1.GetDailySignTaskRequest, opts ...http.CallOption) (*v1.GetDailySignTaskResponse, error) { |
||||
var out v1.GetDailySignTaskResponse |
||||
pattern := "/v1/activity/baily-sign/list" |
||||
path := binding.EncodeURL(pattern, in, false) |
||||
opts = append(opts, http.Operation(OperationActivityGatewayGetDailySignTask)) |
||||
opts = append(opts, http.PathTemplate(pattern)) |
||||
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
return &out, err |
||||
} |
@ -0,0 +1,895 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.32.0
|
||||
// protoc v4.25.1
|
||||
// source: app_gateway/v1/activity_params.proto
|
||||
|
||||
package v1 |
||||
|
||||
import ( |
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
||||
reflect "reflect" |
||||
sync "sync" |
||||
) |
||||
|
||||
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 GetDailySignTaskRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
} |
||||
|
||||
func (x *GetDailySignTaskRequest) Reset() { |
||||
*x = GetDailySignTaskRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[0] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *GetDailySignTaskRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*GetDailySignTaskRequest) ProtoMessage() {} |
||||
|
||||
func (x *GetDailySignTaskRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[0] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use GetDailySignTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetDailySignTaskRequest) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{0} |
||||
} |
||||
|
||||
type DailySignObj struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 奖品id
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` |
||||
// 奖品图片
|
||||
ImgUrl string `protobuf:"bytes,2,opt,name=img_url,json=imgUrl,proto3" json:"img_url"` |
||||
// 奖品名称
|
||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` |
||||
} |
||||
|
||||
func (x *DailySignObj) Reset() { |
||||
*x = DailySignObj{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[1] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *DailySignObj) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*DailySignObj) ProtoMessage() {} |
||||
|
||||
func (x *DailySignObj) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[1] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use DailySignObj.ProtoReflect.Descriptor instead.
|
||||
func (*DailySignObj) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{1} |
||||
} |
||||
|
||||
func (x *DailySignObj) GetId() int64 { |
||||
if x != nil { |
||||
return x.Id |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *DailySignObj) GetImgUrl() string { |
||||
if x != nil { |
||||
return x.ImgUrl |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
func (x *DailySignObj) GetName() string { |
||||
if x != nil { |
||||
return x.Name |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
type GetDailySignTaskResponse struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
Items []*GetDailySignTaskResponse_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items"` |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse) Reset() { |
||||
*x = GetDailySignTaskResponse{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[2] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*GetDailySignTaskResponse) ProtoMessage() {} |
||||
|
||||
func (x *GetDailySignTaskResponse) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[2] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use GetDailySignTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetDailySignTaskResponse) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{2} |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse) GetItems() []*GetDailySignTaskResponse_Item { |
||||
if x != nil { |
||||
return x.Items |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
type CreateDailySignRecordRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 签到id,不传默认当天记录签到
|
||||
DailySignId *int64 `protobuf:"varint,2,opt,name=daily_sign_id,json=dailySignId,proto3,oneof" json:"daily_sign_id"` |
||||
} |
||||
|
||||
func (x *CreateDailySignRecordRequest) Reset() { |
||||
*x = CreateDailySignRecordRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[3] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *CreateDailySignRecordRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*CreateDailySignRecordRequest) ProtoMessage() {} |
||||
|
||||
func (x *CreateDailySignRecordRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[3] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use CreateDailySignRecordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateDailySignRecordRequest) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{3} |
||||
} |
||||
|
||||
func (x *CreateDailySignRecordRequest) GetDailySignId() int64 { |
||||
if x != nil && x.DailySignId != nil { |
||||
return *x.DailySignId |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
type CreateDailySignRecordResponse struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
} |
||||
|
||||
func (x *CreateDailySignRecordResponse) Reset() { |
||||
*x = CreateDailySignRecordResponse{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[4] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *CreateDailySignRecordResponse) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*CreateDailySignRecordResponse) ProtoMessage() {} |
||||
|
||||
func (x *CreateDailySignRecordResponse) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[4] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use CreateDailySignRecordResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreateDailySignRecordResponse) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{4} |
||||
} |
||||
|
||||
type AccDailySignListRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
} |
||||
|
||||
func (x *AccDailySignListRequest) Reset() { |
||||
*x = AccDailySignListRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[5] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *AccDailySignListRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*AccDailySignListRequest) ProtoMessage() {} |
||||
|
||||
func (x *AccDailySignListRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[5] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use AccDailySignListRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AccDailySignListRequest) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{5} |
||||
} |
||||
|
||||
type AccDailySignListResponse struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 当月已经累计签到的天数
|
||||
DayNum int64 `protobuf:"varint,1,opt,name=day_num,json=dayNum,proto3" json:"day_num"` |
||||
Items []*AccDailySignListResponse_Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items"` |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse) Reset() { |
||||
*x = AccDailySignListResponse{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[6] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*AccDailySignListResponse) ProtoMessage() {} |
||||
|
||||
func (x *AccDailySignListResponse) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[6] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use AccDailySignListResponse.ProtoReflect.Descriptor instead.
|
||||
func (*AccDailySignListResponse) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{6} |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse) GetDayNum() int64 { |
||||
if x != nil { |
||||
return x.DayNum |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse) GetItems() []*AccDailySignListResponse_Item { |
||||
if x != nil { |
||||
return x.Items |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
type CreateAccDailySignRequest struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 累积签到记录id
|
||||
AccDailySignId int64 `protobuf:"varint,1,opt,name=acc_daily_sign_id,json=accDailySignId,proto3" json:"acc_daily_sign_id"` |
||||
} |
||||
|
||||
func (x *CreateAccDailySignRequest) Reset() { |
||||
*x = CreateAccDailySignRequest{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[7] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *CreateAccDailySignRequest) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*CreateAccDailySignRequest) ProtoMessage() {} |
||||
|
||||
func (x *CreateAccDailySignRequest) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[7] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use CreateAccDailySignRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateAccDailySignRequest) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{7} |
||||
} |
||||
|
||||
func (x *CreateAccDailySignRequest) GetAccDailySignId() int64 { |
||||
if x != nil { |
||||
return x.AccDailySignId |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
type CreateAccDailySignResponse struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
} |
||||
|
||||
func (x *CreateAccDailySignResponse) Reset() { |
||||
*x = CreateAccDailySignResponse{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[8] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *CreateAccDailySignResponse) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*CreateAccDailySignResponse) ProtoMessage() {} |
||||
|
||||
func (x *CreateAccDailySignResponse) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[8] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use CreateAccDailySignResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreateAccDailySignResponse) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{8} |
||||
} |
||||
|
||||
type GetDailySignTaskResponse_Item struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 签到id
|
||||
DailySignId int64 `protobuf:"varint,1,opt,name=daily_sign_id,json=dailySignId,proto3" json:"daily_sign_id"` |
||||
// 签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品
|
||||
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type"` |
||||
// 数量
|
||||
Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number"` |
||||
// 周
|
||||
Week int32 `protobuf:"varint,4,opt,name=week,proto3" json:"week"` |
||||
// 奖品对象
|
||||
Obj *DailySignObj `protobuf:"bytes,5,opt,name=obj,proto3" json:"obj"` |
||||
// 签到状态:1.已签到, 2.未签到
|
||||
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status"` |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) Reset() { |
||||
*x = GetDailySignTaskResponse_Item{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[9] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*GetDailySignTaskResponse_Item) ProtoMessage() {} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[9] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use GetDailySignTaskResponse_Item.ProtoReflect.Descriptor instead.
|
||||
func (*GetDailySignTaskResponse_Item) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{2, 0} |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetDailySignId() int64 { |
||||
if x != nil { |
||||
return x.DailySignId |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetType() int32 { |
||||
if x != nil { |
||||
return x.Type |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetNumber() int32 { |
||||
if x != nil { |
||||
return x.Number |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetWeek() int32 { |
||||
if x != nil { |
||||
return x.Week |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetObj() *DailySignObj { |
||||
if x != nil { |
||||
return x.Obj |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (x *GetDailySignTaskResponse_Item) GetStatus() int32 { |
||||
if x != nil { |
||||
return x.Status |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
type AccDailySignListResponse_Item struct { |
||||
state protoimpl.MessageState |
||||
sizeCache protoimpl.SizeCache |
||||
unknownFields protoimpl.UnknownFields |
||||
|
||||
// 累积签到记录id
|
||||
AccDailySignId int64 `protobuf:"varint,1,opt,name=acc_daily_sign_id,json=accDailySignId,proto3" json:"acc_daily_sign_id"` |
||||
// 签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品
|
||||
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type"` |
||||
// 数量
|
||||
Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number"` |
||||
// 奖品对象
|
||||
Obj *DailySignObj `protobuf:"bytes,5,opt,name=obj,proto3" json:"obj"` |
||||
// 领取状态:0.未能领取, 1.已经领取, 2.未领取
|
||||
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status"` |
||||
// 积累天数可领取
|
||||
DayNum int32 `protobuf:"varint,7,opt,name=day_num,json=dayNum,proto3" json:"day_num"` |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) Reset() { |
||||
*x = AccDailySignListResponse_Item{} |
||||
if protoimpl.UnsafeEnabled { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[10] |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) String() string { |
||||
return protoimpl.X.MessageStringOf(x) |
||||
} |
||||
|
||||
func (*AccDailySignListResponse_Item) ProtoMessage() {} |
||||
|
||||
func (x *AccDailySignListResponse_Item) ProtoReflect() protoreflect.Message { |
||||
mi := &file_app_gateway_v1_activity_params_proto_msgTypes[10] |
||||
if protoimpl.UnsafeEnabled && x != nil { |
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
||||
if ms.LoadMessageInfo() == nil { |
||||
ms.StoreMessageInfo(mi) |
||||
} |
||||
return ms |
||||
} |
||||
return mi.MessageOf(x) |
||||
} |
||||
|
||||
// Deprecated: Use AccDailySignListResponse_Item.ProtoReflect.Descriptor instead.
|
||||
func (*AccDailySignListResponse_Item) Descriptor() ([]byte, []int) { |
||||
return file_app_gateway_v1_activity_params_proto_rawDescGZIP(), []int{6, 0} |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetAccDailySignId() int64 { |
||||
if x != nil { |
||||
return x.AccDailySignId |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetType() int32 { |
||||
if x != nil { |
||||
return x.Type |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetNumber() int32 { |
||||
if x != nil { |
||||
return x.Number |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetObj() *DailySignObj { |
||||
if x != nil { |
||||
return x.Obj |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetStatus() int32 { |
||||
if x != nil { |
||||
return x.Status |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (x *AccDailySignListResponse_Item) GetDayNum() int32 { |
||||
if x != nil { |
||||
return x.DayNum |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
var File_app_gateway_v1_activity_params_proto protoreflect.FileDescriptor |
||||
|
||||
var file_app_gateway_v1_activity_params_proto_rawDesc = []byte{ |
||||
0x0a, 0x24, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, |
||||
0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, |
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, |
||||
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, |
||||
0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
||||
0x74, 0x22, 0x4b, 0x0a, 0x0c, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x62, |
||||
0x6a, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, |
||||
0x64, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, |
||||
0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x67, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, |
||||
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x94, |
||||
0x02, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, |
||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x69, |
||||
0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x70, |
||||
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, |
||||
0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, |
||||
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, |
||||
0x1a, 0xb2, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x61, 0x69, |
||||
0x6c, 0x79, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, |
||||
0x52, 0x0b, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, |
||||
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, |
||||
0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, |
||||
0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x65, 0x65, |
||||
0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x77, 0x65, 0x65, 0x6b, 0x12, 0x2e, 0x0a, |
||||
0x03, 0x6f, 0x62, 0x6a, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x70, |
||||
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x69, 0x6c, |
||||
0x79, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x62, 0x6a, 0x52, 0x03, 0x6f, 0x62, 0x6a, 0x12, 0x16, 0x0a, |
||||
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, |
||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x59, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, |
||||
0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, |
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0d, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x73, |
||||
0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0b, |
||||
0x64, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x10, |
||||
0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, |
||||
0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, |
||||
0x69, 0x67, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
||||
0x65, 0x22, 0x19, 0x0a, 0x17, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, |
||||
0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb9, 0x02, 0x0a, |
||||
0x18, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x4c, 0x69, 0x73, |
||||
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x61, 0x79, |
||||
0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x64, 0x61, 0x79, 0x4e, |
||||
0x75, 0x6d, 0x12, 0x43, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, |
||||
0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, |
||||
0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x4c, |
||||
0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x74, 0x65, 0x6d, |
||||
0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0xbe, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, |
||||
0x12, 0x29, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x5f, 0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x73, 0x69, |
||||
0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x61, 0x63, 0x63, |
||||
0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, |
||||
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, |
||||
0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, |
||||
0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x03, 0x6f, 0x62, 0x6a, 0x18, 0x05, |
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, |
||||
0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x4f, |
||||
0x62, 0x6a, 0x52, 0x03, 0x6f, 0x62, 0x6a, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, |
||||
0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, |
||||
0x17, 0x0a, 0x07, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, |
||||
0x52, 0x06, 0x64, 0x61, 0x79, 0x4e, 0x75, 0x6d, 0x22, 0x46, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, |
||||
0x74, 0x65, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, |
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x5f, 0x64, 0x61, 0x69, |
||||
0x6c, 0x79, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, |
||||
0x52, 0x0e, 0x61, 0x63, 0x63, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x64, |
||||
0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x44, 0x61, 0x69, |
||||
0x6c, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, |
||||
0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x67, 0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, |
||||
0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69, 0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, |
||||
0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, |
||||
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, |
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
||||
} |
||||
|
||||
var ( |
||||
file_app_gateway_v1_activity_params_proto_rawDescOnce sync.Once |
||||
file_app_gateway_v1_activity_params_proto_rawDescData = file_app_gateway_v1_activity_params_proto_rawDesc |
||||
) |
||||
|
||||
func file_app_gateway_v1_activity_params_proto_rawDescGZIP() []byte { |
||||
file_app_gateway_v1_activity_params_proto_rawDescOnce.Do(func() { |
||||
file_app_gateway_v1_activity_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_gateway_v1_activity_params_proto_rawDescData) |
||||
}) |
||||
return file_app_gateway_v1_activity_params_proto_rawDescData |
||||
} |
||||
|
||||
var file_app_gateway_v1_activity_params_proto_msgTypes = make([]protoimpl.MessageInfo, 11) |
||||
var file_app_gateway_v1_activity_params_proto_goTypes = []interface{}{ |
||||
(*GetDailySignTaskRequest)(nil), // 0: app_gateway.v1.GetDailySignTaskRequest
|
||||
(*DailySignObj)(nil), // 1: app_gateway.v1.DailySignObj
|
||||
(*GetDailySignTaskResponse)(nil), // 2: app_gateway.v1.GetDailySignTaskResponse
|
||||
(*CreateDailySignRecordRequest)(nil), // 3: app_gateway.v1.CreateDailySignRecordRequest
|
||||
(*CreateDailySignRecordResponse)(nil), // 4: app_gateway.v1.CreateDailySignRecordResponse
|
||||
(*AccDailySignListRequest)(nil), // 5: app_gateway.v1.AccDailySignListRequest
|
||||
(*AccDailySignListResponse)(nil), // 6: app_gateway.v1.AccDailySignListResponse
|
||||
(*CreateAccDailySignRequest)(nil), // 7: app_gateway.v1.CreateAccDailySignRequest
|
||||
(*CreateAccDailySignResponse)(nil), // 8: app_gateway.v1.CreateAccDailySignResponse
|
||||
(*GetDailySignTaskResponse_Item)(nil), // 9: app_gateway.v1.GetDailySignTaskResponse.Item
|
||||
(*AccDailySignListResponse_Item)(nil), // 10: app_gateway.v1.AccDailySignListResponse.Item
|
||||
} |
||||
var file_app_gateway_v1_activity_params_proto_depIdxs = []int32{ |
||||
9, // 0: app_gateway.v1.GetDailySignTaskResponse.items:type_name -> app_gateway.v1.GetDailySignTaskResponse.Item
|
||||
10, // 1: app_gateway.v1.AccDailySignListResponse.items:type_name -> app_gateway.v1.AccDailySignListResponse.Item
|
||||
1, // 2: app_gateway.v1.GetDailySignTaskResponse.Item.obj:type_name -> app_gateway.v1.DailySignObj
|
||||
1, // 3: app_gateway.v1.AccDailySignListResponse.Item.obj:type_name -> app_gateway.v1.DailySignObj
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
} |
||||
|
||||
func init() { file_app_gateway_v1_activity_params_proto_init() } |
||||
func file_app_gateway_v1_activity_params_proto_init() { |
||||
if File_app_gateway_v1_activity_params_proto != nil { |
||||
return |
||||
} |
||||
if !protoimpl.UnsafeEnabled { |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*GetDailySignTaskRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*DailySignObj); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*GetDailySignTaskResponse); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*CreateDailySignRecordRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*CreateDailySignRecordResponse); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*AccDailySignListRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*AccDailySignListResponse); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*CreateAccDailySignRequest); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*CreateAccDailySignResponse); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*GetDailySignTaskResponse_Item); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
||||
switch v := v.(*AccDailySignListResponse_Item); i { |
||||
case 0: |
||||
return &v.state |
||||
case 1: |
||||
return &v.sizeCache |
||||
case 2: |
||||
return &v.unknownFields |
||||
default: |
||||
return nil |
||||
} |
||||
} |
||||
} |
||||
file_app_gateway_v1_activity_params_proto_msgTypes[3].OneofWrappers = []interface{}{} |
||||
type x struct{} |
||||
out := protoimpl.TypeBuilder{ |
||||
File: protoimpl.DescBuilder{ |
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
||||
RawDescriptor: file_app_gateway_v1_activity_params_proto_rawDesc, |
||||
NumEnums: 0, |
||||
NumMessages: 11, |
||||
NumExtensions: 0, |
||||
NumServices: 0, |
||||
}, |
||||
GoTypes: file_app_gateway_v1_activity_params_proto_goTypes, |
||||
DependencyIndexes: file_app_gateway_v1_activity_params_proto_depIdxs, |
||||
MessageInfos: file_app_gateway_v1_activity_params_proto_msgTypes, |
||||
}.Build() |
||||
File_app_gateway_v1_activity_params_proto = out.File |
||||
file_app_gateway_v1_activity_params_proto_rawDesc = nil |
||||
file_app_gateway_v1_activity_params_proto_goTypes = nil |
||||
file_app_gateway_v1_activity_params_proto_depIdxs = nil |
||||
} |
@ -0,0 +1,89 @@
|
||||
syntax = "proto3"; |
||||
|
||||
package app_gateway.v1; |
||||
option go_package = "git.gz.internal.jumaiyx.cn/jm/jmproto/activity_gateway/v1;v1"; |
||||
|
||||
message GetDailySignTaskRequest{} |
||||
|
||||
message DailySignObj { |
||||
// 奖品id |
||||
int64 id = 1; |
||||
|
||||
// 奖品图片 |
||||
string img_url = 2; |
||||
|
||||
// 奖品名称 |
||||
string name = 3; |
||||
} |
||||
|
||||
|
||||
message GetDailySignTaskResponse { |
||||
message Item { |
||||
|
||||
// 签到id |
||||
int64 daily_sign_id = 1; |
||||
|
||||
//签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品 |
||||
int32 type = 2; |
||||
|
||||
// 数量 |
||||
int32 number = 3; |
||||
|
||||
// 周 |
||||
int32 week = 4; |
||||
|
||||
//奖品对象 |
||||
DailySignObj obj = 5; |
||||
|
||||
// 签到状态:1.已签到, 2.未签到 |
||||
int32 status = 6; |
||||
} |
||||
|
||||
repeated Item items = 1; |
||||
|
||||
} |
||||
|
||||
message CreateDailySignRecordRequest{ |
||||
// 签到id,不传默认当天记录签到 |
||||
optional int64 daily_sign_id = 2; |
||||
} |
||||
|
||||
message CreateDailySignRecordResponse {} |
||||
|
||||
|
||||
message AccDailySignListRequest { |
||||
|
||||
} |
||||
|
||||
message AccDailySignListResponse { |
||||
message Item { |
||||
// 累积签到记录id |
||||
int64 acc_daily_sign_id = 1; |
||||
|
||||
//签到奖品类型 1.金币,2.钻石,3.礼物, 4.商品 |
||||
int32 type = 2; |
||||
|
||||
// 数量 |
||||
int32 number = 3; |
||||
|
||||
//奖品对象 |
||||
DailySignObj obj = 5; |
||||
|
||||
// 领取状态:0.未能领取, 1.已经领取, 2.未领取 |
||||
int32 status = 6; |
||||
|
||||
// 积累天数可领取 |
||||
int32 day_num = 7; |
||||
} |
||||
// 当月已经累计签到的天数 |
||||
int64 day_num = 1; |
||||
|
||||
repeated Item items = 2; |
||||
} |
||||
|
||||
message CreateAccDailySignRequest { |
||||
// 累积签到记录id |
||||
int64 acc_daily_sign_id = 1; |
||||
} |
||||
|
||||
message CreateAccDailySignResponse{} |
@ -0,0 +1,61 @@
|
||||
syntax = "proto3"; |
||||
|
||||
package mike.v1; |
||||
|
||||
option go_package = "git.gz.internal.jumaiyx.cn/jm/jmproto/mike/v1;v1"; |
||||
|
||||
service Mike { |
||||
// 创建房间麦克风 |
||||
rpc CreateMike (CreateMikeRequest) returns (NilResp); |
||||
|
||||
// 删除房间麦克风 |
||||
rpc DeleteMike (DeleteMikeRequest) returns (NilResp); |
||||
|
||||
// 获取房间麦克风列表 |
||||
rpc GetRoomMikeList (GetRoomMikeListRequest) returns (); |
||||
} |
||||
|
||||
enum MikeStatus { |
||||
MikeStatusNil = 0; |
||||
MikeStatusUp = 1; // 上麦 |
||||
MikeStatusOut = 2; // 下麦 |
||||
MikeStatusApply = 3;// 申请 |
||||
MikeStatusInvite = 4;// 邀请 |
||||
} |
||||
|
||||
message NilResp {} |
||||
|
||||
message Total { |
||||
int64 total = 1; |
||||
} |
||||
|
||||
message MikeData { |
||||
// 麦克风id |
||||
int64 mike_id = 1; |
||||
// 用户id |
||||
int64 uid = 2 ; |
||||
|
||||
// 麦克风状态 |
||||
MikeStatus status = 3; |
||||
} |
||||
|
||||
message CreateMikeRequest { |
||||
// 房间id |
||||
int64 room_id = 1; |
||||
// 麦克风数量 |
||||
int32 num = 2; |
||||
} |
||||
|
||||
message DeleteMikeRequest { |
||||
int64 room_id = 1; |
||||
} |
||||
|
||||
message GetRoomMikeListRequest { |
||||
int64 room_id = 1; |
||||
int32 status = 2; // 默认获取全部,1.只获取有上麦的列表 |
||||
repeated int64 uid_list = 3; // 用户id |
||||
} |
||||
|
||||
message GetRoomMikeListResponse { |
||||
|
||||
} |
Loading…
Reference in new issue