syntax = "proto3";

package campaign;

option go_package = "git.gocasts.ir/ebhomengo/niki/donate_app/protobuf;campaignpb";

service CampaignService {
    rpc CheckAndCompleteCampaigns (CheckAndCompleteCampaignsRequest) returns (CheckAndCompleteCampaignsResponse);
}

message CheckAndCompleteCampaignsRequest {
    FilterRequest filter = 1;
}

message CheckAndCompleteCampaignsResponse {
    uint64 total_checked = 1;
    uint64 total_finished = 2;
}

message FilterRequest {
    uint32 limit = 1;
}