syntax = "proto3"; package factory; option go_package="./factory"; import "google/api/annotations.proto"; message GroupCreateRequest { string name =1; string account =2; string password =3; } message GroupEditRequest { int64 id = 1; string name =2; string account =3; string password =4; } message GroupItemsRequest { int32 page = 1; int32 size =2; int32 status =3; string name =4; } message GroupPasswordRequest { int64 id = 1; string password =2; } message EmptyRequest { } message IdRequest { int64 id = 1; } message StatusRequest { int64 id = 1; int32 status = 2; string reason = 3; } message Response { int32 code = 1; string msg = 2; string data = 3; } message PostCreateRequest { string name =1; } message PostEditRequest { int64 id = 1; string name =2; } message LogItemsRequest { int32 page = 1; int32 size =2; int32 type =3; int32 obj_type =4; repeated string time =5; } message WorkerCreateRequest { string name =1; string mobile =2; string group_id =3; string post_id = 4; } message WorkerEditRequest { int64 id = 1; string name =2; string mobile =3; int64 group_id =4; int64 post_id = 5; } message WorkerItemsRequest { int32 page = 1; int32 size =2; string name =3; int64 group_id =4; int64 post_id = 5; string mobile =6; } service Factory { rpc GroupItems(GroupItemsRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/group/items" body: "*" }; }; rpc GroupInfo(IdRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/group/info" body: "*" }; }; rpc GroupCreate(GroupCreateRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/group/create" body: "*" }; }; rpc GroupEdit(GroupEditRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/group/edit" body: "*" }; }; rpc GroupStatus(StatusRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/group/status" body: "*" }; }; rpc GroupNames(EmptyRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/group/names" body: "*" }; }; rpc GroupPassword(GroupPasswordRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/group/password" body: "*" }; }; rpc PostItems(EmptyRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/post/items" body: "*" }; }; rpc PostInfo(IdRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/post/info" body: "*" }; }; rpc PostCreate(PostCreateRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/post/create" body: "*" }; }; rpc PostEdit(PostEditRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/post/edit" body: "*" }; }; rpc PostStatus(StatusRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/post/status" body: "*" }; }; rpc PostNames(EmptyRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/post/names" body: "*" }; }; rpc LogItems(LogItemsRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/log/items" body: "*" }; }; rpc WorkerCreate(WorkerCreateRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/worker/create" body: "*" }; }; rpc WorkerEdit(WorkerEditRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/worker/edit" body: "*" }; }; rpc WorkerStatus(StatusRequest) returns(Response){ option (google.api.http) = { post: "/admin/v3/worker/status" body: "*" }; }; rpc WorkerNames(EmptyRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/worker/names" body: "*" }; }; rpc WorkerItems(WorkerItemsRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/worker/items" body: "*" }; }; rpc WorkerInfo(IdRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/worker/info" body: "*" }; }; }