85 lines
1.7 KiB
Protocol Buffer
85 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "mix/mixv1/common.proto";
|
|
import "mix/mixv1/crontab.proto";
|
|
|
|
package mixservice.mixv1;
|
|
option go_package = "./mix/mixv1;mixv1";
|
|
|
|
service CrontabOurs {
|
|
// 上游定时任务列表
|
|
rpc SearchCrontabOurs(SearchCrontabOursReq) returns (SearchCrontabOursResp) {}
|
|
// 添加上游定时任务
|
|
rpc AddCrontabOurs(AddCrontabOursReq) returns (AddCrontabOursResp) {}
|
|
|
|
// 修改上游定时任务
|
|
rpc UpdateCrontabOurs(UpdateCrontabOursReq) returns (UpdateCrontabOursResp) {}
|
|
|
|
}
|
|
|
|
message SearchCrontabOursReq {
|
|
ReqPage page = 1;
|
|
|
|
string title = 2;
|
|
int32 planned_start_time = 3;
|
|
int32 planned_end_time = 4;
|
|
optional sint32 status = 5;
|
|
int32 ours_product_id = 6;
|
|
|
|
|
|
bool withCrontab = 8;
|
|
}
|
|
|
|
message SearchCrontabOursResp {
|
|
repeated CrontabOursBatchWithCrontab list = 1;
|
|
int32 count = 2;
|
|
}
|
|
|
|
message CrontabOursBatchWithCrontab {
|
|
int32 crontab_id = 1;
|
|
int32 ours_product_id = 2;
|
|
int32 ours_status = 3;
|
|
string exec_event = 4;
|
|
string ids = 5;
|
|
string reason = 6;
|
|
double discount = 7;
|
|
double price = 8;
|
|
|
|
CrontabDetail crontab = 10;
|
|
}
|
|
|
|
|
|
message AddCrontabOursReq {
|
|
string title = 1;
|
|
int32 mode = 2;
|
|
double price = 3;
|
|
double discount = 4;
|
|
string exec_event = 5;
|
|
string ids = 6;
|
|
int32 ours_product_id = 7;
|
|
string reason = 8;
|
|
int32 ours_status = 9;
|
|
string rule = 10;
|
|
|
|
int32 user_id = 14;
|
|
}
|
|
message AddCrontabOursResp {}
|
|
|
|
message UpdateCrontabOursReq{
|
|
string title = 1;
|
|
int32 mode = 2;
|
|
double price = 3;
|
|
double discount = 4;
|
|
string exec_event = 5;
|
|
string ids = 6;
|
|
int32 ours_product_id = 7;
|
|
string reason = 8;
|
|
int32 ours_status = 9;
|
|
string rule = 10;
|
|
|
|
int32 user_id = 14;
|
|
int32 crontab_id = 15;
|
|
}
|
|
message UpdateCrontabOursResp{}
|
|
|