|
|
syntax = "proto3";
|
|
|
|
|
|
//在web层重新生成pb.go的方法
|
|
|
/*
|
|
|
protoc -I Business/SysLoginperson/SysLoginpersonProto/ Business/SysLoginperson/SysLoginpersonProto/SysLoginperson.proto --go_out=plugins=grpc:Business/SysLoginperson/SysLoginpersonProto
|
|
|
*/
|
|
|
package SysLoginpersonProto;
|
|
|
|
|
|
option go_package = ".;SysLoginpersonProto";
|
|
|
|
|
|
option java_multiple_files = true;
|
|
|
option java_package = "com.dsideal.dsmin.base";
|
|
|
option java_outer_classname = "SysLoginperson";
|
|
|
option objc_class_prefix = "";
|
|
|
|
|
|
service SysLoginpersonManage {
|
|
|
//获取单条
|
|
|
rpc GetSysLoginperson (ModelArg) returns (Reply) {}
|
|
|
//增加
|
|
|
rpc AddSysLoginperson (ModelArg) returns (Reply) {}
|
|
|
//批量删除
|
|
|
rpc DeleteSysLoginperson (DeleteIdsArg) returns (Reply) {}
|
|
|
//修改
|
|
|
rpc UpdateSysLoginperson (ModelArg) returns (Reply) {}
|
|
|
//获取单位管理员列表
|
|
|
rpc PageSysLoginperson (QueryArg) returns (Reply) {}
|
|
|
//导出单位管理员到EXCEL
|
|
|
rpc PageSysLoginpersonExcel (QueryArg) returns (Reply) {}
|
|
|
//获取地区管理员列表
|
|
|
rpc PageAreaManager (AreaManagerArg) returns (Reply) {}
|
|
|
//导出地区管理员到EXCEL
|
|
|
rpc PageAreaManagerExcel (AreaManagerArg) returns (Reply) {}
|
|
|
//重置密码
|
|
|
rpc ResetPassWord (ResetPassWordArg) returns (Reply) {}
|
|
|
//启用账号
|
|
|
rpc EnableAccount (AccountArg) returns (Reply) {}
|
|
|
//禁用账号
|
|
|
rpc DisableAccount (AccountArg) returns (Reply) {}
|
|
|
//修改登录密码
|
|
|
rpc UpdateLoginPassWord (UpdateLoginPassWordArg) returns (Reply) {}
|
|
|
}
|
|
|
|
|
|
message UpdateLoginPassWordArg {
|
|
|
//人员ID
|
|
|
string PersonId = 1;
|
|
|
//身份ID
|
|
|
int32 IdentityId = 2;
|
|
|
//原密码
|
|
|
string OldPassWord = 3;
|
|
|
//新密码
|
|
|
string NewPassWord = 4;
|
|
|
//操作人
|
|
|
string ActionPersonId = 5;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 6;
|
|
|
}
|
|
|
|
|
|
message AccountArg{
|
|
|
//人员ID
|
|
|
repeated string PersonIds = 1;
|
|
|
//操作人
|
|
|
string ActionPersonId = 2;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 3;
|
|
|
}
|
|
|
|
|
|
message ResetPassWordArg{
|
|
|
//一个或多个ID
|
|
|
repeated string Ids = 1;
|
|
|
//操作人
|
|
|
string ActionPersonId = 2;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 3;
|
|
|
}
|
|
|
|
|
|
message AreaManagerArg{
|
|
|
int32 Page = 1;
|
|
|
int32 Limit = 2;
|
|
|
//地区码
|
|
|
string AreaCode = 3;
|
|
|
//操作人
|
|
|
string ActionPersonId = 4;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 5;
|
|
|
}
|
|
|
|
|
|
message ModelArg {
|
|
|
//主键ID
|
|
|
string Id = 1;
|
|
|
//整数ID
|
|
|
int32 IdInt = 2;
|
|
|
//用户名
|
|
|
string LoginName = 3;
|
|
|
//密码
|
|
|
string Pwd = 4;
|
|
|
//身份ID
|
|
|
int32 IdentityId = 5;
|
|
|
//人员ID
|
|
|
string PersonId = 6;
|
|
|
//人员姓名
|
|
|
string PersonName = 7;
|
|
|
//是否启用 0:未启用 1:启用
|
|
|
int32 BUse = 8;
|
|
|
//最后修改时间
|
|
|
string LastUpdatedTime = 9;
|
|
|
//需要强制更新的列
|
|
|
repeated string ForceUpdateFields = 10;
|
|
|
//操作人
|
|
|
string ActionPersonId = 11;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 12;
|
|
|
}
|
|
|
|
|
|
// 查询参数
|
|
|
message QueryArg{
|
|
|
int32 Page = 1;
|
|
|
int32 Limit = 2;
|
|
|
//组织机构类型 1:教育局 2:学校 7:教辅单位
|
|
|
repeated int32 OrgType = 3;
|
|
|
//地区码
|
|
|
string AreaCode = 4;
|
|
|
//操作人
|
|
|
string ActionPersonId = 5;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 6;
|
|
|
}
|
|
|
|
|
|
// 查询请求响应
|
|
|
message Reply{
|
|
|
bool Success = 1;
|
|
|
string Message = 2;
|
|
|
int32 Count = 3;
|
|
|
string List = 4;
|
|
|
string ExcelPath = 5;
|
|
|
}
|
|
|
//删除参数
|
|
|
message DeleteIdsArg {
|
|
|
//一个或多个ID
|
|
|
repeated string Ids = 1;
|
|
|
//操作人
|
|
|
string ActionPersonId = 2;
|
|
|
//操作IP
|
|
|
string ActionIpAddress = 3;
|
|
|
}
|