syntax = "proto3";

option go_package = "/proto";

package proto;


//model
message GetCodebyImgPathReq {
  string imgpath  = 1;
  string stype = 2;
  string head = 3;
  string cookie = 4;
}
message GetCodebyImgPathResp {
  string code = 1;
  string head = 2;
  string cookie = 3;
}

//service
service GetCode {
  rpc GetCodeByImgPath(GetCodebyImgPathReq) returns(GetCodebyImgPathResp);
}
