You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
syntax = "proto3" ;
//在web层重新生成pb.go的方法
/*
protoc -I Business/DmSubject/DmSubjectProto/ Business/DmSubject/DmSubjectProto/DmSubject.proto --go_out=plugins=grpc:Business/DmSubject/DmSubjectProto
*/
package DmSubjectProto ;
option go_package = ".;DmSubjectProto" ;
option java_multiple_files = true ;
option java_package = "com.dsideal.dsmin.base" ;
option java_outer_classname = "DmSubject" ;
option objc_class_prefix = "" ;
service DmSubjectManage {
//获取单条
rpc GetDmSubject ( ModelArg ) returns ( Reply ) { }
//增加
rpc AddDmSubject ( ModelArg ) returns ( Reply ) { }
//批量删除
rpc DeleteDmSubject ( DeleteIdsArg ) returns ( Reply ) { }
//修改
rpc UpdateDmSubject ( ModelArg ) returns ( Reply ) { }
//查询(分页)
rpc PageDmSubject ( QueryArg ) returns ( Reply ) { }
}
message ModelArg {
//学科ID
string SubjectId = 1 ;
//学科名称
string SubjectName = 2 ;
//是否启用 0: 未启用 1: 启用
int32 BUse = 3 ;
//排序号
int32 SortId = 4 ;
//需要强制更新的列
repeated string ForceUpdateFields = 5 ;
}
// 查询参数
message QueryArg {
int32 Page = 1 ;
int32 Limit = 2 ;
}
// 查询请求响应
message Reply {
bool Success = 1 ;
string Message = 2 ;
int32 Count = 3 ;
string List = 4 ;
}
//删除参数
message DeleteIdsArg {
//一个或多个ID
repeated string Ids = 1 ;
}