Browse Source

feat: 添加api

2637309949 4 years ago
parent
commit
998c7e7ffb

+ 30 - 0
internal/logic/loadoptionsetlogic.go

@@ -0,0 +1,30 @@
+package logic
+
+import (
+	"context"
+
+	"git.i2edu.net/i2/i2-bill-erp/internal/svc"
+	"git.i2edu.net/i2/i2-bill-erp/transform"
+
+	"git.i2edu.net/i2/go-zero/core/logx"
+)
+
+type LoadOptionsetLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewLoadOptionsetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoadOptionsetLogic {
+	return &LoadOptionsetLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *LoadOptionsetLogic) LoadOptionset(in *transform.OptionsetReq) (*transform.OptionsetRes, error) {
+	// todo: add your logic here and delete this line
+
+	return &transform.OptionsetRes{}, nil
+}

+ 30 - 0
internal/logic/postexcelloglogic.go

@@ -0,0 +1,30 @@
+package logic
+
+import (
+	"context"
+
+	"git.i2edu.net/i2/i2-bill-erp/internal/svc"
+	"git.i2edu.net/i2/i2-bill-erp/transform"
+
+	"git.i2edu.net/i2/go-zero/core/logx"
+)
+
+type PostExcelLogLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewPostExcelLogLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PostExcelLogLogic {
+	return &PostExcelLogLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *PostExcelLogLogic) PostExcelLog(in *transform.ExcelLogReq) (*transform.ExcelLogRes, error) {
+	// todo: add your logic here and delete this line
+
+	return &transform.ExcelLogRes{}, nil
+}

+ 11 - 2
internal/server/transformserver.go

@@ -33,6 +33,15 @@ func (s *TransformServer) ParseToken(ctx context.Context, in *transform.TokenReq
 
 func (s *TransformServer) GetErpCityTree(ctx context.Context, in *transform.Empty) (*transform.TreeNodes, error) {
 	l := logic.NewGetErpCityTreeLogic(ctx, s.svcCtx)
-	// return l.GetErpCityTree(in)
-	return l.GetErpCityTree()
+	return l.GetErpCityTree(in)
+}
+
+func (s *TransformServer) LoadOptionset(ctx context.Context, in *transform.OptionsetReq) (*transform.OptionsetRes, error) {
+	l := logic.NewLoadOptionsetLogic(ctx, s.svcCtx)
+	return l.LoadOptionset(in)
+}
+
+func (s *TransformServer) PostExcelLog(ctx context.Context, in *transform.ExcelLogReq) (*transform.ExcelLogRes, error) {
+	l := logic.NewPostExcelLogLogic(ctx, s.svcCtx)
+	return l.PostExcelLog(in)
 }

+ 24 - 0
transform.proto

@@ -51,10 +51,34 @@ message Tag{
   string name = 2;
 }
 
+message OptionsetReq{
+  string code = 1;
+}
+
+
+message OptionsetRes{
+  map<string, string> mapList=1;
+}
 
 
+message ExcelLogReq {
+  string	Module = 1;
+	string Cond = 2;
+	string CreateBy = 3;
+	string CreateTime  = 4;
+	string LastUpdateBy = 5;
+	string LastUpdateTime = 6;
+	string DelFlag = 7;
+}
+
+message ExcelLogRes {
+  string Status = 1;
+}
+
 service Transform {
   rpc GetUser(UserRequest) returns(UserResponse);
   rpc ParseToken(TokenRequest) returns(TokenResponse);
   rpc GetErpCityTree(Empty) returns(TreeNodes);
+  rpc LoadOptionset(OptionsetReq) returns(OptionsetRes);
+  rpc PostExcelLog(ExcelLogReq) returns(ExcelLogRes);
 }

+ 327 - 33
transform/transform.pb.go

@@ -480,6 +480,210 @@ func (m *Tag) GetName() string {
 	return ""
 }
 
+type OptionsetReq struct {
+	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *OptionsetReq) Reset()         { *m = OptionsetReq{} }
+func (m *OptionsetReq) String() string { return proto.CompactTextString(m) }
+func (*OptionsetReq) ProtoMessage()    {}
+func (*OptionsetReq) Descriptor() ([]byte, []int) {
+	return fileDescriptor_cb4a498eeb2ba07d, []int{8}
+}
+
+func (m *OptionsetReq) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_OptionsetReq.Unmarshal(m, b)
+}
+func (m *OptionsetReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_OptionsetReq.Marshal(b, m, deterministic)
+}
+func (m *OptionsetReq) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_OptionsetReq.Merge(m, src)
+}
+func (m *OptionsetReq) XXX_Size() int {
+	return xxx_messageInfo_OptionsetReq.Size(m)
+}
+func (m *OptionsetReq) XXX_DiscardUnknown() {
+	xxx_messageInfo_OptionsetReq.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_OptionsetReq proto.InternalMessageInfo
+
+func (m *OptionsetReq) GetCode() string {
+	if m != nil {
+		return m.Code
+	}
+	return ""
+}
+
+type OptionsetRes struct {
+	MapList              map[string]string `protobuf:"bytes,1,rep,name=mapList,proto3" json:"mapList,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
+	XXX_unrecognized     []byte            `json:"-"`
+	XXX_sizecache        int32             `json:"-"`
+}
+
+func (m *OptionsetRes) Reset()         { *m = OptionsetRes{} }
+func (m *OptionsetRes) String() string { return proto.CompactTextString(m) }
+func (*OptionsetRes) ProtoMessage()    {}
+func (*OptionsetRes) Descriptor() ([]byte, []int) {
+	return fileDescriptor_cb4a498eeb2ba07d, []int{9}
+}
+
+func (m *OptionsetRes) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_OptionsetRes.Unmarshal(m, b)
+}
+func (m *OptionsetRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_OptionsetRes.Marshal(b, m, deterministic)
+}
+func (m *OptionsetRes) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_OptionsetRes.Merge(m, src)
+}
+func (m *OptionsetRes) XXX_Size() int {
+	return xxx_messageInfo_OptionsetRes.Size(m)
+}
+func (m *OptionsetRes) XXX_DiscardUnknown() {
+	xxx_messageInfo_OptionsetRes.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_OptionsetRes proto.InternalMessageInfo
+
+func (m *OptionsetRes) GetMapList() map[string]string {
+	if m != nil {
+		return m.MapList
+	}
+	return nil
+}
+
+type ExcelLogReq struct {
+	Module               string   `protobuf:"bytes,1,opt,name=Module,proto3" json:"Module,omitempty"`
+	Cond                 string   `protobuf:"bytes,2,opt,name=Cond,proto3" json:"Cond,omitempty"`
+	CreateBy             string   `protobuf:"bytes,3,opt,name=CreateBy,proto3" json:"CreateBy,omitempty"`
+	CreateTime           string   `protobuf:"bytes,4,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"`
+	LastUpdateBy         string   `protobuf:"bytes,5,opt,name=LastUpdateBy,proto3" json:"LastUpdateBy,omitempty"`
+	LastUpdateTime       string   `protobuf:"bytes,6,opt,name=LastUpdateTime,proto3" json:"LastUpdateTime,omitempty"`
+	DelFlag              string   `protobuf:"bytes,7,opt,name=DelFlag,proto3" json:"DelFlag,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *ExcelLogReq) Reset()         { *m = ExcelLogReq{} }
+func (m *ExcelLogReq) String() string { return proto.CompactTextString(m) }
+func (*ExcelLogReq) ProtoMessage()    {}
+func (*ExcelLogReq) Descriptor() ([]byte, []int) {
+	return fileDescriptor_cb4a498eeb2ba07d, []int{10}
+}
+
+func (m *ExcelLogReq) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_ExcelLogReq.Unmarshal(m, b)
+}
+func (m *ExcelLogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_ExcelLogReq.Marshal(b, m, deterministic)
+}
+func (m *ExcelLogReq) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_ExcelLogReq.Merge(m, src)
+}
+func (m *ExcelLogReq) XXX_Size() int {
+	return xxx_messageInfo_ExcelLogReq.Size(m)
+}
+func (m *ExcelLogReq) XXX_DiscardUnknown() {
+	xxx_messageInfo_ExcelLogReq.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ExcelLogReq proto.InternalMessageInfo
+
+func (m *ExcelLogReq) GetModule() string {
+	if m != nil {
+		return m.Module
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetCond() string {
+	if m != nil {
+		return m.Cond
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetCreateBy() string {
+	if m != nil {
+		return m.CreateBy
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetCreateTime() string {
+	if m != nil {
+		return m.CreateTime
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetLastUpdateBy() string {
+	if m != nil {
+		return m.LastUpdateBy
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetLastUpdateTime() string {
+	if m != nil {
+		return m.LastUpdateTime
+	}
+	return ""
+}
+
+func (m *ExcelLogReq) GetDelFlag() string {
+	if m != nil {
+		return m.DelFlag
+	}
+	return ""
+}
+
+type ExcelLogRes struct {
+	Status               string   `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *ExcelLogRes) Reset()         { *m = ExcelLogRes{} }
+func (m *ExcelLogRes) String() string { return proto.CompactTextString(m) }
+func (*ExcelLogRes) ProtoMessage()    {}
+func (*ExcelLogRes) Descriptor() ([]byte, []int) {
+	return fileDescriptor_cb4a498eeb2ba07d, []int{11}
+}
+
+func (m *ExcelLogRes) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_ExcelLogRes.Unmarshal(m, b)
+}
+func (m *ExcelLogRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_ExcelLogRes.Marshal(b, m, deterministic)
+}
+func (m *ExcelLogRes) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_ExcelLogRes.Merge(m, src)
+}
+func (m *ExcelLogRes) XXX_Size() int {
+	return xxx_messageInfo_ExcelLogRes.Size(m)
+}
+func (m *ExcelLogRes) XXX_DiscardUnknown() {
+	xxx_messageInfo_ExcelLogRes.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ExcelLogRes proto.InternalMessageInfo
+
+func (m *ExcelLogRes) GetStatus() string {
+	if m != nil {
+		return m.Status
+	}
+	return ""
+}
+
 func init() {
 	proto.RegisterType((*UserRequest)(nil), "transform.UserRequest")
 	proto.RegisterType((*UserResponse)(nil), "transform.UserResponse")
@@ -489,44 +693,62 @@ func init() {
 	proto.RegisterType((*TreeNodes)(nil), "transform.TreeNodes")
 	proto.RegisterType((*TreeNode)(nil), "transform.TreeNode")
 	proto.RegisterType((*Tag)(nil), "transform.Tag")
+	proto.RegisterType((*OptionsetReq)(nil), "transform.OptionsetReq")
+	proto.RegisterType((*OptionsetRes)(nil), "transform.OptionsetRes")
+	proto.RegisterMapType((map[string]string)(nil), "transform.OptionsetRes.MapListEntry")
+	proto.RegisterType((*ExcelLogReq)(nil), "transform.ExcelLogReq")
+	proto.RegisterType((*ExcelLogRes)(nil), "transform.ExcelLogRes")
 }
 
 func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) }
 
 var fileDescriptor_cb4a498eeb2ba07d = []byte{
-	// 499 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6e, 0xdb, 0x3c,
-	0x10, 0x85, 0x2c, 0xcb, 0x3f, 0xe3, 0xc4, 0xf9, 0xc0, 0xcf, 0x70, 0x05, 0x2f, 0x0a, 0x41, 0xc8,
-	0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eb, 0x3a, 0x1f, 0xc2, 0x79, 0x0d, 0x7b, 0xff, 0x3e, 0xe3, 0xed, 0x8d,
+	0x7f, 0x0b, 0x70, 0x15, 0x0b, 0x89, 0xfa, 0x1d, 0x60, 0x6e, 0x99, 0xfb, 0x80, 0xf4, 0x82, 0xe7,
+	0x09, 0xbb, 0xc1, 0x11, 0x74, 0x4e, 0x51, 0x0d, 0x45, 0x71, 0x92, 0xaa, 0x92, 0x8c, 0xc8, 0xb6,
+	0x9d, 0x5a, 0x7d, 0xbb, 0x7a, 0x3b, 0x2f, 0x78, 0x55, 0xb2, 0x77, 0xb0, 0x39, 0xe2, 0x71, 0xb2,
+	0xf4, 0xcb, 0xca, 0xe9, 0xae, 0x29, 0x7b, 0xbf, 0x49, 0x90, 0x11, 0xdb, 0x57, 0x5c, 0xaa, 0x4a,
+	0xb2, 0x95, 0xf1, 0x1d, 0x93, 0xf4, 0x5e, 0xe6, 0xe5, 0xa7, 0x86, 0xfe, 0x8b, 0x1c, 0xfe, 0x0a,
+	0x00, 0x00, 0xff, 0xff, 0xb6, 0x68, 0xe8, 0xf6, 0x58, 0x06, 0x00, 0x00,
 }
 
 // Reference imports to suppress errors if they are not otherwise used.
@@ -544,6 +766,8 @@ type TransformClient interface {
 	GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
 	ParseToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
 	GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
+	LoadOptionset(ctx context.Context, in *OptionsetReq, opts ...grpc.CallOption) (*OptionsetRes, error)
+	PostExcelLog(ctx context.Context, in *ExcelLogReq, opts ...grpc.CallOption) (*ExcelLogRes, error)
 }
 
 type transformClient struct {
@@ -581,11 +805,31 @@ func (c *transformClient) GetErpCityTree(ctx context.Context, in *Empty, opts ..
 	return out, nil
 }
 
+func (c *transformClient) LoadOptionset(ctx context.Context, in *OptionsetReq, opts ...grpc.CallOption) (*OptionsetRes, error) {
+	out := new(OptionsetRes)
+	err := c.cc.Invoke(ctx, "/transform.Transform/LoadOptionset", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *transformClient) PostExcelLog(ctx context.Context, in *ExcelLogReq, opts ...grpc.CallOption) (*ExcelLogRes, error) {
+	out := new(ExcelLogRes)
+	err := c.cc.Invoke(ctx, "/transform.Transform/PostExcelLog", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // TransformServer is the server API for Transform service.
 type TransformServer interface {
 	GetUser(context.Context, *UserRequest) (*UserResponse, error)
 	ParseToken(context.Context, *TokenRequest) (*TokenResponse, error)
 	GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
+	LoadOptionset(context.Context, *OptionsetReq) (*OptionsetRes, error)
+	PostExcelLog(context.Context, *ExcelLogReq) (*ExcelLogRes, error)
 }
 
 // UnimplementedTransformServer can be embedded to have forward compatible implementations.
@@ -601,6 +845,12 @@ func (*UnimplementedTransformServer) ParseToken(ctx context.Context, req *TokenR
 func (*UnimplementedTransformServer) GetErpCityTree(ctx context.Context, req *Empty) (*TreeNodes, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetErpCityTree not implemented")
 }
+func (*UnimplementedTransformServer) LoadOptionset(ctx context.Context, req *OptionsetReq) (*OptionsetRes, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method LoadOptionset not implemented")
+}
+func (*UnimplementedTransformServer) PostExcelLog(ctx context.Context, req *ExcelLogReq) (*ExcelLogRes, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PostExcelLog not implemented")
+}
 
 func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
 	s.RegisterService(&_Transform_serviceDesc, srv)
@@ -660,6 +910,42 @@ func _Transform_GetErpCityTree_Handler(srv interface{}, ctx context.Context, dec
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Transform_LoadOptionset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(OptionsetReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(TransformServer).LoadOptionset(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/transform.Transform/LoadOptionset",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(TransformServer).LoadOptionset(ctx, req.(*OptionsetReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Transform_PostExcelLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(ExcelLogReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(TransformServer).PostExcelLog(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/transform.Transform/PostExcelLog",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(TransformServer).PostExcelLog(ctx, req.(*ExcelLogReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 var _Transform_serviceDesc = grpc.ServiceDesc{
 	ServiceName: "transform.Transform",
 	HandlerType: (*TransformServer)(nil),
@@ -676,6 +962,14 @@ var _Transform_serviceDesc = grpc.ServiceDesc{
 			MethodName: "GetErpCityTree",
 			Handler:    _Transform_GetErpCityTree_Handler,
 		},
+		{
+			MethodName: "LoadOptionset",
+			Handler:    _Transform_LoadOptionset_Handler,
+		},
+		{
+			MethodName: "PostExcelLog",
+			Handler:    _Transform_PostExcelLog_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "transform.proto",

+ 17 - 1
transformclient/transform.go

@@ -14,19 +14,25 @@ import (
 )
 
 type (
-	UserRequest   = transform.UserRequest
 	UserResponse  = transform.UserResponse
 	TokenRequest  = transform.TokenRequest
 	TokenResponse = transform.TokenResponse
+	ExcelLogReq   = transform.ExcelLogReq
+	OptionsetRes  = transform.OptionsetRes
+	ExcelLogRes   = transform.ExcelLogRes
+	UserRequest   = transform.UserRequest
 	Empty         = transform.Empty
 	TreeNodes     = transform.TreeNodes
 	TreeNode      = transform.TreeNode
 	Tag           = transform.Tag
+	OptionsetReq  = transform.OptionsetReq
 
 	Transform interface {
 		GetUser(ctx context.Context, in *UserRequest) (*UserResponse, error)
 		ParseToken(ctx context.Context, in *TokenRequest) (*TokenResponse, error)
 		GetErpCityTree(ctx context.Context, in *Empty) (*TreeNodes, error)
+		LoadOptionset(ctx context.Context, in *OptionsetReq) (*OptionsetRes, error)
+		PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error)
 	}
 
 	defaultTransform struct {
@@ -54,3 +60,13 @@ func (m *defaultTransform) GetErpCityTree(ctx context.Context, in *Empty) (*Tree
 	client := transform.NewTransformClient(m.cli.Conn())
 	return client.GetErpCityTree(ctx, in)
 }
+
+func (m *defaultTransform) LoadOptionset(ctx context.Context, in *OptionsetReq) (*OptionsetRes, error) {
+	client := transform.NewTransformClient(m.cli.Conn())
+	return client.LoadOptionset(ctx, in)
+}
+
+func (m *defaultTransform) PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error) {
+	client := transform.NewTransformClient(m.cli.Conn())
+	return client.PostExcelLog(ctx, in)
+}