瀏覽代碼

参数修改

zhangxinlei1996 3 年之前
父節點
當前提交
420215162e

+ 2 - 2
rpc/internal/logic/examinelistlogic.go

@@ -24,10 +24,10 @@ func NewExamineListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Exami
 }
 
 // 审核列表
-func (l *ExamineListLogic) ExamineList(in *pb.ExamineListReq) (*pb.ExamineListResq, error) {
+func (l *ExamineListLogic) ExamineList(in *pb.ExamineListReq) (*pb.ExamineListResp, error) {
 	// todo: add your logic here and delete this line
 	code, msg, rdata := Entservice.ExamineList(in)
-	return &pb.ExamineListResq{
+	return &pb.ExamineListResp{
 		ErrorCode: code,
 		ErrorMsg:  msg,
 		Data:      rdata,

+ 1 - 1
rpc/internal/server/usercenterserver.go

@@ -41,7 +41,7 @@ func (s *UserCenterServer) EntList(ctx context.Context, in *pb.EntListReq) (*pb.
 }
 
 // 审核列表
-func (s *UserCenterServer) ExamineList(ctx context.Context, in *pb.ExamineListReq) (*pb.ExamineListResq, error) {
+func (s *UserCenterServer) ExamineList(ctx context.Context, in *pb.ExamineListReq) (*pb.ExamineListResp, error) {
 	l := logic.NewExamineListLogic(ctx, s.svcCtx)
 	return l.ExamineList(in)
 }

+ 18 - 18
rpc/pb/userCenter.pb.go

@@ -679,7 +679,7 @@ type EntList struct {
 	Createtime       string `protobuf:"bytes,5,opt,name=createtime,proto3" json:"createtime,omitempty"`              //创建时间
 	ValidTime        string `protobuf:"bytes,6,opt,name=validTime,proto3" json:"validTime,omitempty"`                //有效截至日期
 	AuthStatus       int64  `protobuf:"varint,7,opt,name=authStatus,proto3" json:"authStatus,omitempty"`             //认证状态
-	FrozenStatus     int64  `protobuf:"varint,8,opt,name=frozenStatus,proto3" json:"frozenStatus,omitempty"`         //冻结状态  1正常  0冻结
+	FrozenStatus     int64  `protobuf:"varint,8,opt,name=frozenStatus,proto3" json:"frozenStatus,omitempty"`         //冻结状态 1冻结 0未冻结
 }
 
 func (x *EntList) Reset() {
@@ -875,7 +875,7 @@ func (x *ExamineListReq) GetPageSize() string {
 }
 
 //审核列表出参
-type ExamineListResq struct {
+type ExamineListResp struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
@@ -885,8 +885,8 @@ type ExamineListResq struct {
 	Data      *ExamineListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //列表
 }
 
-func (x *ExamineListResq) Reset() {
-	*x = ExamineListResq{}
+func (x *ExamineListResp) Reset() {
+	*x = ExamineListResp{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_userCenter_proto_msgTypes[10]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -894,13 +894,13 @@ func (x *ExamineListResq) Reset() {
 	}
 }
 
-func (x *ExamineListResq) String() string {
+func (x *ExamineListResp) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*ExamineListResq) ProtoMessage() {}
+func (*ExamineListResp) ProtoMessage() {}
 
-func (x *ExamineListResq) ProtoReflect() protoreflect.Message {
+func (x *ExamineListResp) ProtoReflect() protoreflect.Message {
 	mi := &file_userCenter_proto_msgTypes[10]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -912,26 +912,26 @@ func (x *ExamineListResq) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use ExamineListResq.ProtoReflect.Descriptor instead.
-func (*ExamineListResq) Descriptor() ([]byte, []int) {
+// Deprecated: Use ExamineListResp.ProtoReflect.Descriptor instead.
+func (*ExamineListResp) Descriptor() ([]byte, []int) {
 	return file_userCenter_proto_rawDescGZIP(), []int{10}
 }
 
-func (x *ExamineListResq) GetErrorCode() int64 {
+func (x *ExamineListResp) GetErrorCode() int64 {
 	if x != nil {
 		return x.ErrorCode
 	}
 	return 0
 }
 
-func (x *ExamineListResq) GetErrorMsg() string {
+func (x *ExamineListResp) GetErrorMsg() string {
 	if x != nil {
 		return x.ErrorMsg
 	}
 	return ""
 }
 
-func (x *ExamineListResq) GetData() *ExamineListData {
+func (x *ExamineListResp) GetData() *ExamineListData {
 	if x != nil {
 		return x.Data
 	}
@@ -1443,7 +1443,7 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18,
 	0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22,
 	0x73, 0x0a, 0x0f, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
-	0x73, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65,
+	0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65,
 	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64,
 	0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02,
 	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x24,
@@ -1496,7 +1496,7 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69,
 	0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74,
 	0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73,
-	0x74, 0x52, 0x65, 0x73, 0x71, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e,
+	0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e,
 	0x74, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a,
 	0x0d, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06,
 	0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
@@ -1526,7 +1526,7 @@ var file_userCenter_proto_goTypes = []interface{}{
 	(*EntData)(nil),                 // 7: EntData
 	(*EntList)(nil),                 // 8: EntList
 	(*ExamineListReq)(nil),          // 9: ExamineListReq
-	(*ExamineListResq)(nil),         // 10: ExamineListResq
+	(*ExamineListResp)(nil),         // 10: ExamineListResp
 	(*ExamineListData)(nil),         // 11: ExamineListData
 	(*ExamineList)(nil),             // 12: ExamineList
 	(*CheckEntReq)(nil),             // 13: CheckEntReq
@@ -1539,7 +1539,7 @@ var file_userCenter_proto_depIdxs = []int32{
 	15, // 1: ExamineResp.data:type_name -> ExamineResp.ExamineData
 	7,  // 2: EntListResp.data:type_name -> EntData
 	8,  // 3: EntData.list:type_name -> EntList
-	11, // 4: ExamineListResq.data:type_name -> ExamineListData
+	11, // 4: ExamineListResp.data:type_name -> ExamineListData
 	12, // 5: ExamineListData.list:type_name -> ExamineList
 	16, // 6: CheckEntResp.data:type_name -> CheckEntResp.checkData
 	0,  // 7: UserCenter.EntAuth:input_type -> EntAuthReq
@@ -1550,7 +1550,7 @@ var file_userCenter_proto_depIdxs = []int32{
 	1,  // 12: UserCenter.EntAuth:output_type -> EntAuthResp
 	4,  // 13: UserCenter.EntExamine:output_type -> ExamineResp
 	6,  // 14: UserCenter.EntList:output_type -> EntListResp
-	10, // 15: UserCenter.ExamineList:output_type -> ExamineListResq
+	10, // 15: UserCenter.ExamineList:output_type -> ExamineListResp
 	14, // 16: UserCenter.CheckEnt:output_type -> CheckEntResp
 	12, // [12:17] is the sub-list for method output_type
 	7,  // [7:12] is the sub-list for method input_type
@@ -1686,7 +1686,7 @@ func file_userCenter_proto_init() {
 			}
 		}
 		file_userCenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ExamineListResq); i {
+			switch v := v.(*ExamineListResp); i {
 			case 0:
 				return &v.state
 			case 1:

+ 5 - 5
rpc/pb/userCenter_grpc.pb.go

@@ -29,7 +29,7 @@ type UserCenterClient interface {
 	//企业列表
 	EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error)
 	//审核列表
-	ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResq, error)
+	ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
 	//查看企业状态
 	CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
 }
@@ -69,8 +69,8 @@ func (c *userCenterClient) EntList(ctx context.Context, in *EntListReq, opts ...
 	return out, nil
 }
 
-func (c *userCenterClient) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResq, error) {
-	out := new(ExamineListResq)
+func (c *userCenterClient) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error) {
+	out := new(ExamineListResp)
 	err := c.cc.Invoke(ctx, "/UserCenter/ExamineList", in, out, opts...)
 	if err != nil {
 		return nil, err
@@ -98,7 +98,7 @@ type UserCenterServer interface {
 	//企业列表
 	EntList(context.Context, *EntListReq) (*EntListResp, error)
 	//审核列表
-	ExamineList(context.Context, *ExamineListReq) (*ExamineListResq, error)
+	ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error)
 	//查看企业状态
 	CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error)
 	mustEmbedUnimplementedUserCenterServer()
@@ -117,7 +117,7 @@ func (UnimplementedUserCenterServer) EntExamine(context.Context, *ExamineReq) (*
 func (UnimplementedUserCenterServer) EntList(context.Context, *EntListReq) (*EntListResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method EntList not implemented")
 }
-func (UnimplementedUserCenterServer) ExamineList(context.Context, *ExamineListReq) (*ExamineListResq, error) {
+func (UnimplementedUserCenterServer) ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ExamineList not implemented")
 }
 func (UnimplementedUserCenterServer) CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error) {

+ 2 - 2
rpc/test/ent_test.go

@@ -112,8 +112,8 @@ func Test_ExamineList(t *testing.T) {
 		AuthPhone:     "",
 		RegPhone:      "",
 		AuthType:      "",
-		AuthStartTime: "1650075550",
-		AuthEndTime:   "1681611550",
+		AuthStartTime: "",
+		AuthEndTime:   "",
 		PageNum:       "",
 		PageSize:      "",
 	}

+ 2 - 2
rpc/userCenter.proto

@@ -101,7 +101,7 @@ message ExamineListReq{
 	string pageSize =8; //每页展示条数
 }
 //审核列表出参
-message ExamineListResq{
+message ExamineListResp{
 	int64   error_code = 1;
 	string  error_msg = 2;
 	ExamineListData data = 3; //列表
@@ -149,7 +149,7 @@ service UserCenter {
 	//企业列表
 	rpc EntList(EntListReq) returns (EntListResp);
 	//审核列表
-	rpc ExamineList (ExamineListReq)returns (ExamineListResq);
+	rpc ExamineList (ExamineListReq)returns (ExamineListResp);
 	//查看企业状态
 	rpc CheckEnt (CheckEntReq) returns(CheckEntResp);
 }

+ 3 - 3
rpc/usercenter/usercenter.go

@@ -26,7 +26,7 @@ type (
 	ExamineList             = pb.ExamineList
 	ExamineListData         = pb.ExamineListData
 	ExamineListReq          = pb.ExamineListReq
-	ExamineListResq         = pb.ExamineListResq
+	ExamineListResp         = pb.ExamineListResp
 	ExamineReq              = pb.ExamineReq
 	ExamineResp             = pb.ExamineResp
 	ExamineResp_ExamineData = pb.ExamineResp_ExamineData
@@ -39,7 +39,7 @@ type (
 		// 企业列表
 		EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error)
 		// 审核列表
-		ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResq, error)
+		ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
 		// 查看企业状态
 		CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
 	}
@@ -74,7 +74,7 @@ func (m *defaultUserCenter) EntList(ctx context.Context, in *EntListReq, opts ..
 }
 
 // 审核列表
-func (m *defaultUserCenter) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResq, error) {
+func (m *defaultUserCenter) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error) {
 	client := pb.NewUserCenterClient(m.cli.Conn())
 	return client.ExamineList(ctx, in, opts...)
 }