syntax = "proto3"; package user.userv1; import "user/userv1/common.proto"; option go_package = "./user/userv1;userv1"; // 产品服务 service Product { rpc GetList (ReqList) returns (RespProducts) {} rpc GetAllWithPage (ReqAllProducts) returns (RespAllProducts) {} rpc CreateProduct(ReqCreateProduct) returns (ProductEntity) {} rpc UpdateProduct(ProductEntity) returns (ProductEntity) {} } message ReqList { int32 id = 1; string code = 2; string name = 3; int32 status = 4; repeated int32 statuses = 5; } message RespProducts { repeated ProductEntity list = 1; } message ProductEntity { int32 id = 1; string code = 2; string name = 3; string icon = 4; string url = 5; string text = 6; int32 status = 7; int32 createTime = 8 [json_name = "create_time"]; string path = 9; int32 sort = 10; } message ReqAllProducts { ReqPage page = 1; string name = 2; string code = 3; int32 status = 4; int32 id = 5; } message RespAllProducts { repeated ProductEntity list = 1; RespPage page = 2; } message ReqCreateProduct { string code = 1; string name = 2; string icon = 3; string url = 4; string text = 5; int32 status = 6; string path = 7; int32 sort = 8; }