master
huanghai 5 years ago
parent d1b89aed70
commit 769e69fed1

@ -87,6 +87,10 @@ func PageBaseClass(in *BaseClassProto.QueryArg) ([]map[string]interface{}, int32
myBuilder.And(builder.Eq{"t1.rxnf": in.Rxnf})
myBuilder.And(builder.Eq{"t1.stage_id": in.StageId})
myBuilder.And(builder.Eq{"t1.bureau_id": in.BureauId})
//排除某个班级,用在将学生进行调整班级时的需求
if in.RemoveClassId!=""{
myBuilder.And(builder.Neq{"t1.class_id": in.RemoveClassId})
}
//获取拼接完成的SQL语句
sql, err := myBuilder.OrderBy("t1.bh asc").Limit(limit, offset).ToBoundSQL()
if err != nil {

@ -303,10 +303,12 @@ type QueryArg struct {
StageId string `protobuf:"bytes,4,opt,name=stageId,proto3" json:"stageId,omitempty"`
//入学年份
Rxnf int32 `protobuf:"varint,5,opt,name=Rxnf,proto3" json:"Rxnf,omitempty"`
//需要滤掉的班级ID
RemoveClassId string `protobuf:"bytes,6,opt,name=RemoveClassId,proto3" json:"RemoveClassId,omitempty"`
//操作人
ActionPersonId string `protobuf:"bytes,6,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"`
ActionPersonId string `protobuf:"bytes,7,opt,name=ActionPersonId,proto3" json:"ActionPersonId,omitempty"`
//操作IP
ActionIpAddress string `protobuf:"bytes,7,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"`
ActionIpAddress string `protobuf:"bytes,8,opt,name=ActionIpAddress,proto3" json:"ActionIpAddress,omitempty"`
}
func (x *QueryArg) Reset() {
@ -376,6 +378,13 @@ func (x *QueryArg) GetRxnf() int32 {
return 0
}
func (x *QueryArg) GetRemoveClassId() string {
if x != nil {
return x.RemoveClassId
}
return ""
}
func (x *QueryArg) GetActionPersonId() string {
if x != nil {
return x.ActionPersonId
@ -579,7 +588,7 @@ var file_BaseClass_proto_rawDesc = []byte{
0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xd0, 0x01, 0x0a,
0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xf6, 0x01, 0x0a,
0x08, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x67,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a,
0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x4c, 0x69,
@ -587,61 +596,63 @@ var file_BaseClass_proto_rawDesc = []byte{
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x42, 0x75, 0x72, 0x65, 0x61, 0x75, 0x49, 0x64, 0x12,
0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x78, 0x6e,
0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x52, 0x78, 0x6e, 0x66, 0x12, 0x26, 0x0a,
0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72,
0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22,
0x65, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63,
0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x32, 0xe8, 0x03, 0x0a, 0x0f, 0x42,
0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x12, 0x41,
0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x18,
0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43,
0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
0x00, 0x12, 0x41, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70,
0x6c, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x1c, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c,
0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49,
0x64, 0x73, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x44,
0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70,
0x6c, 0x79, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65,
0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a,
0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53,
0x74, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73,
0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x52, 0x78, 0x6e, 0x66, 0x12, 0x24, 0x0a,
0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x18, 0x06,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72,
0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x65, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18,
0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x0c,
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03,
0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x12, 0x26,
0x0a, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x65,
0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x32, 0xe8, 0x03, 0x0a, 0x0f, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x43,
0x6c, 0x61, 0x73, 0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15,
0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x78,
0x6e, 0x66, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42,
0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65,
0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x3a, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x73, 0x69,
0x64, 0x65, 0x61, 0x6c, 0x2e, 0x64, 0x73, 0x6d, 0x69, 0x6e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x42,
0x09, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x01, 0x5a, 0x10, 0x2e, 0x3b,
0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02,
0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c,
0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72,
0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x1c, 0x2e,
0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70,
0x6c, 0x79, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c,
0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72,
0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x50, 0x61,
0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x18, 0x2e, 0x42, 0x61,
0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65,
0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3d,
0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73,
0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65,
0x6c, 0x41, 0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3c, 0x0a,
0x07, 0x47, 0x65, 0x74, 0x52, 0x78, 0x6e, 0x66, 0x12, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43,
0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41,
0x72, 0x67, 0x1a, 0x15, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x3a, 0x0a, 0x16, 0x63,
0x6f, 0x6d, 0x2e, 0x64, 0x73, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x2e, 0x64, 0x73, 0x6d, 0x69, 0x6e,
0x2e, 0x62, 0x61, 0x73, 0x65, 0x42, 0x09, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73,
0x50, 0x01, 0x5a, 0x10, 0x2e, 0x3b, 0x42, 0x61, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

@ -1,118 +1,120 @@
syntax = "proto3";
//webpb.go
/*
protoc -I Business/BaseClass/BaseClassProto/ Business/BaseClass/BaseClassProto/BaseClass.proto --go_out=plugins=grpc:Business/BaseClass/BaseClassProto
*/
package BaseClassProto;
option go_package = ".;BaseClassProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseClass";
option objc_class_prefix = "";
service BaseClassManage {
//
rpc GetBaseClass (ModelArg) returns (Reply) {}
//
rpc AddBaseClass (ModelArg) returns (Reply) {}
//
rpc DeleteBaseClass (DeleteIdsArg) returns (Reply) {}
//
rpc UpdateBaseClass (ModelArg) returns (Reply) {}
//()
rpc PageBaseClass (QueryArg) returns (Reply) {}
//ID()
rpc GetStage (ModelArg) returns (Reply) {}
//ID()ID
rpc GetRxnf (ModelArg) returns (Reply) {}
}
message ModelArg {
//ID
string ClassId = 1;
//ID
int32 IdInt = 2;
//
int32 Bh = 3;
// 10+4+1+3 0: 1: 2: 3: 4 5
string ClassCode = 4;
//
string ClassName = 5;
//
string ClassAlias = 6;
//
int32 Rxnf = 7;
//
int32 Rxjj = 8;
//
int32 SchoolingLength = 9;
//ID
string StageId = 10;
//ID
string TeacherId = 11;
//0
string OrgId = 12;
//ID
string BureauId = 13;
// 0 1
int32 BUse = 14;
//
string ProvinceCode = 15;
//
string CityCode = 16;
//
string DistrictCode = 17;
//ID
string MainSchoolId = 18;
//
string LastUpdatedTime = 19;
//
int32 StartBh = 20;
//
int32 EndBh = 21;
//
repeated string ForceUpdateFields = 22;
//
string ActionPersonId = 23;
//IP
string ActionIpAddress = 24;
}
//
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
//ID
string BureauId = 3;
//ID
string stageId = 4;
//
int32 Rxnf = 5;
//
string ActionPersonId = 6;
//IP
string ActionIpAddress = 7;
}
//
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
}
//
message DeleteIdsArg {
//ID
repeated string Ids = 1;
//
string ActionPersonId = 2;
//IP
string ActionIpAddress = 3;
syntax = "proto3";
//webpb.go
/*
protoc -I Business/BaseClass/BaseClassProto/ Business/BaseClass/BaseClassProto/BaseClass.proto --go_out=plugins=grpc:Business/BaseClass/BaseClassProto
*/
package BaseClassProto;
option go_package = ".;BaseClassProto";
option java_multiple_files = true;
option java_package = "com.dsideal.dsmin.base";
option java_outer_classname = "BaseClass";
option objc_class_prefix = "";
service BaseClassManage {
//
rpc GetBaseClass (ModelArg) returns (Reply) {}
//
rpc AddBaseClass (ModelArg) returns (Reply) {}
//
rpc DeleteBaseClass (DeleteIdsArg) returns (Reply) {}
//
rpc UpdateBaseClass (ModelArg) returns (Reply) {}
//()
rpc PageBaseClass (QueryArg) returns (Reply) {}
//ID()
rpc GetStage (ModelArg) returns (Reply) {}
//ID()ID
rpc GetRxnf (ModelArg) returns (Reply) {}
}
message ModelArg {
//ID
string ClassId = 1;
//ID
int32 IdInt = 2;
//
int32 Bh = 3;
// 10+4+1+3 0: 1: 2: 3: 4 5
string ClassCode = 4;
//
string ClassName = 5;
//
string ClassAlias = 6;
//
int32 Rxnf = 7;
//
int32 Rxjj = 8;
//
int32 SchoolingLength = 9;
//ID
string StageId = 10;
//ID
string TeacherId = 11;
//0
string OrgId = 12;
//ID
string BureauId = 13;
// 0 1
int32 BUse = 14;
//
string ProvinceCode = 15;
//
string CityCode = 16;
//
string DistrictCode = 17;
//ID
string MainSchoolId = 18;
//
string LastUpdatedTime = 19;
//
int32 StartBh = 20;
//
int32 EndBh = 21;
//
repeated string ForceUpdateFields = 22;
//
string ActionPersonId = 23;
//IP
string ActionIpAddress = 24;
}
//
message QueryArg{
int32 Page = 1;
int32 Limit = 2;
//ID
string BureauId = 3;
//ID
string stageId = 4;
//
int32 Rxnf = 5;
//ID
string RemoveClassId = 6;
//
string ActionPersonId = 7;
//IP
string ActionIpAddress = 8;
}
//
message Reply{
bool Success = 1;
string Message = 2;
int32 Count = 3;
string List = 4;
}
//
message DeleteIdsArg {
//ID
repeated string Ids = 1;
//
string ActionPersonId = 2;
//IP
string ActionIpAddress = 3;
}
Loading…
Cancel
Save