1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- syntax = "proto3";
- package backend.operation;
- option go_package = ".;operationPb";
- import "backend/operation/enum.proto";
- import "backend/operation/pagination.proto";
- message AddRoleRequest {
- int64 id = 1;
- string name = 2;
- string remarks = 3;
- IsShow.Kind is_show = 4;
- repeated int64 pasture_id = 5;
- repeated int64 menu_id = 6;
- repeated int64 mobile_id = 7;
- string create_user = 8;
- int64 created_at = 9;
- string crated_at_format = 10;
- }
- message SearchRoleRequest {
- string name = 3;
- PaginationModel pagination = 2;
- }
- message SearchRoleResponse {
- int32 page = 1;
- int32 total = 2;
- repeated AddRoleRequest list = 3;
- }
- message AddMenuRequest {
- int64 id = 1;
- string name = 2;
- }
- message SystemToken {
- string token = 1;
- }
- message UserAuth {
- string user_name = 1;
- string password = 2;
- string phone = 3;
- repeated UserRole roles = 4;
- string employee_name = 5;
- }
- message UserRole {
- int64 id = 1;
- string name = 2;
- }
- message AddSystemUser {
- int64 id = 1;
- string name = 2;
- string phone = 3;
- repeated UserRole roles = 4;
- IsShow.Kind is_show = 5;
- string employee_name = 6;
- string create_user = 7;
- int64 created_at = 8;
- string crated_at_format = 9;
- }
- message SearchUserRequest {
- string name = 1;
- string employee_name = 2;
- IsShow.Kind is_show = 3;
- int64 created_start_time = 4;
- int64 created_end_time = 5;
- PaginationModel pagination = 6;
- }
- message SearchUserResponse {
- int32 page = 1;
- int32 total = 2;
- repeated AddSystemUser list = 3;
- }
- message EditIsShowSystemUserRequest {
- int64 user_id = 1;
- IsShow.Kind is_show = 2;
- }
|