20 lines
300 B
Protocol Buffer
20 lines
300 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package product;
|
|
option go_package="./product";
|
|
|
|
|
|
// OKResp
|
|
message OKResp {}
|
|
// NoneReq
|
|
message NoneReq {}
|
|
|
|
message CreateCategoryReq {
|
|
string name = 1;
|
|
}
|
|
|
|
|
|
service Product {
|
|
// CreateCategory 建立 product 分類
|
|
rpc CreateCategory(CreateCategoryReq) returns(OKResp);
|
|
} |