瀏覽代碼

临时提交

icole 4 年之前
父節點
當前提交
a36d1605b3

+ 55 - 0
internal/logic/get_erp_mkt_net_work_detail_tree_logic.go

@@ -0,0 +1,55 @@
+package logic
+
+import (
+	"context"
+	"git.i2edu.net/i2/i2-bill-erp/model"
+	"git.i2edu.net/i2/i2-bill-erp/utils"
+
+	"git.i2edu.net/i2/i2-bill-erp/internal/svc"
+	"git.i2edu.net/i2/i2-bill-erp/transform"
+
+	"github.com/tal-tech/go-zero/core/logx"
+)
+
+type GetErpMktNetWorkDetailTreeLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewGetErpMktNetWorkDetailTreeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetErpMktNetWorkDetailTreeLogic {
+	return &GetErpMktNetWorkDetailTreeLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *GetErpMktNetWorkDetailTreeLogic) GetErpMktNetWorkDetailTree(in *transform.Empty) (*transform.TreeNodes, error) {
+	// todo: add your logic here and delete this line
+	var nodes = new([]*transform.TreeNode)
+	var networks = new([]model.MktNetworkDetail)
+	sql := `select
+			*
+		from
+			mkt_network_detail
+		where
+			mkt_network_detail.del_flag = 0
+            and id>=1000
+			and (id in (1001,1002,1003,1004,1005)or !ISNULL(mkt_network_detail.parent))
+		`
+	err := l.svcCtx.SqlConn.QueryRows(networks, sql)
+	for _, newwork := range *networks {
+		node := new(transform.TreeNode)
+		node.Id = newwork.Id
+		node.Parent = newwork.Parent.Int64
+		node.Text = newwork.Name.String
+		*nodes = append(*nodes, node)
+	}
+	if err != nil {
+		return nil, err
+	}
+	res, err := utils.BuildTree(nodes)
+	return &transform.TreeNodes{Nodes: res}, err
+
+}

+ 50 - 0
internal/logic/get_erp_optionset_logic.go

@@ -0,0 +1,50 @@
+package logic
+
+import (
+	"context"
+	"errors"
+	"git.i2edu.net/i2/go-zero/core/stores/sqlx"
+	"git.i2edu.net/i2/i2-bill-erp/model"
+
+	"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 GetErpOptionsetLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewGetErpOptionsetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetErpOptionsetLogic {
+	return &GetErpOptionsetLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *GetErpOptionsetLogic) GetErpOptionset(in *transform.OptionCode) (*transform.Options, error) {
+	// todo: add your logic here and delete this line
+	code := in.Code
+	if code == "" {
+		return nil, errors.New("请输入code参数")
+	}
+	var optionSet = new(model.SysOptionset)
+	sql := `select
+			*
+		from
+			sys_optionset
+		where
+			sys_optionset.del_flag = 0
+			and code = ?`
+
+	err := l.svcCtx.SqlConn.QueryRow(optionSet, sql, code)
+	if err != nil && err != sqlx.ErrNotFound {
+		return nil, err
+	}
+	return &transform.Options{Code: optionSet.Code, Name: optionSet.Name, Value: optionSet.Value}, nil
+
+}

+ 32 - 0
internal/logic/get_erp_organ_sch_per_by_user_id_logic.go

@@ -0,0 +1,32 @@
+package logic
+
+import (
+	"context"
+
+	"git.i2edu.net/i2/i2-bill-erp/internal/svc"
+	"git.i2edu.net/i2/i2-bill-erp/transform"
+
+	"github.com/tal-tech/go-zero/core/logx"
+)
+
+type GetErpOrganSchPerByUserIdLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewGetErpOrganSchPerByUserIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetErpOrganSchPerByUserIdLogic {
+	return &GetErpOrganSchPerByUserIdLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+// 获取erp 用户权限
+func (l *GetErpOrganSchPerByUserIdLogic) GetErpOrganSchPerByUserId(in *transform.GetErpOrganSchPerByUserIdReq) (*transform.GetErpOrganSchPerByUserIdResp, error) {
+	// todo: add your logic here and delete this line
+
+	//l.svcCtx.DB
+	return &transform.GetErpOrganSchPerByUserIdResp{}, nil
+}

+ 9 - 0
internal/server/transform_server.go

@@ -31,17 +31,26 @@ func (s *TransformServer) ParseToken(ctx context.Context, in *transform.TokenReq
 	return l.ParseToken(in)
 }
 
+// 获取erp 省、城市树
 func (s *TransformServer) GetErpCityTree(ctx context.Context, in *transform.Empty) (*transform.TreeNodes, error) {
 	l := logic.NewGetErpCityTreeLogic(ctx, s.svcCtx)
 	return l.GetErpCityTree(in)
 }
 
+// 获取erp  字典
 func (s *TransformServer) GetErpOptionset(ctx context.Context, in *transform.OptionCode) (*transform.Options, error) {
 	l := logic.NewGetErpOptionsetLogic(ctx, s.svcCtx)
 	return l.GetErpOptionset(in)
 }
 
+// 获取erp 渠道细分树
 func (s *TransformServer) GetErpMktNetWorkDetailTree(ctx context.Context, in *transform.Empty) (*transform.TreeNodes, error) {
 	l := logic.NewGetErpMktNetWorkDetailTreeLogic(ctx, s.svcCtx)
 	return l.GetErpMktNetWorkDetailTree(in)
 }
+
+// 获取erp 用户权限
+func (s *TransformServer) GetErpOrganSchPerByUserId(ctx context.Context, in *transform.GetErpOrganSchPerByUserIdReq) (*transform.GetErpOrganSchPerByUserIdResp, error) {
+	l := logic.NewGetErpOrganSchPerByUserIdLogic(ctx, s.svcCtx)
+	return l.GetErpOrganSchPerByUserId(in)
+}

+ 88 - 0
model/mkt_network_detail_model.go

@@ -0,0 +1,88 @@
+package model
+
+import (
+	"database/sql"
+	"fmt"
+	"strings"
+
+	"git.i2edu.net/i2/go-zero/core/stores/sqlc"
+	"git.i2edu.net/i2/go-zero/core/stores/sqlx"
+	"git.i2edu.net/i2/go-zero/core/stringx"
+	"git.i2edu.net/i2/go-zero/tools/goctl/model/sql/builderx"
+)
+
+var (
+	mktNetworkDetailFieldNames          = builderx.RawFieldNames(&MktNetworkDetail{})
+	mktNetworkDetailRows                = strings.Join(mktNetworkDetailFieldNames, ",")
+	mktNetworkDetailRowsExpectAutoSet   = strings.Join(stringx.Remove(mktNetworkDetailFieldNames, "`id`", "`create_time`", "`update_time`"), ",")
+	mktNetworkDetailRowsWithPlaceHolder = strings.Join(stringx.Remove(mktNetworkDetailFieldNames, "`id`", "`create_time`", "`update_time`"), "=?,") + "=?"
+)
+
+type (
+	MktNetworkDetailModel interface {
+		Insert(data MktNetworkDetail) (sql.Result, error)
+		FindOne(id int64) (*MktNetworkDetail, error)
+		Update(data MktNetworkDetail) error
+		Delete(id int64) error
+	}
+
+	defaultMktNetworkDetailModel struct {
+		conn  sqlx.SqlConn
+		table string
+	}
+
+	MktNetworkDetail struct {
+		LastUpdateTime sql.NullTime    `db:"last_update_time" json:"last_update_time"`
+		CreateBy       sql.NullString  `db:"create_by" json:"create_by"`
+		LastUpdateBy   sql.NullString  `db:"last_update_by" json:"last_update_by"`
+		Parent         sql.NullInt64   `db:"parent" json:"parent"`
+		Inheritance    sql.NullString  `db:"inheritance" json:"inheritance"`
+		Remake         sql.NullString  `db:"remake" json:"remake"`
+		CreateTime     sql.NullTime    `db:"create_time" json:"create_time"`
+		DelFlag        sql.NullFloat64 `db:"del_flag" json:"del_flag"`
+		Qudao          sql.NullInt64   `db:"qudao" json:"qudao"`
+		Id             int64           `db:"id" json:"id"`
+		Name           sql.NullString  `db:"name" json:"name"`
+		ChannelType    sql.NullInt64   `db:"channel_type" json:"channel_type"`
+		QueryType      sql.NullInt64   `db:"query_type" json:"query_type"`
+	}
+)
+
+func NewMktNetworkDetailModel(conn sqlx.SqlConn) MktNetworkDetailModel {
+	return &defaultMktNetworkDetailModel{
+		conn:  conn,
+		table: "`mkt_network_detail`",
+	}
+}
+
+func (m *defaultMktNetworkDetailModel) Insert(data MktNetworkDetail) (sql.Result, error) {
+	query := fmt.Sprintf("insert into %s (%s) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", m.table, mktNetworkDetailRowsExpectAutoSet)
+	ret, err := m.conn.Exec(query, data.LastUpdateTime, data.CreateBy, data.LastUpdateBy, data.Parent, data.Inheritance, data.Remake, data.DelFlag, data.Qudao, data.Name, data.ChannelType, data.QueryType)
+	return ret, err
+}
+
+func (m *defaultMktNetworkDetailModel) FindOne(id int64) (*MktNetworkDetail, error) {
+	query := fmt.Sprintf("select %s from %s where `id` = ? limit 1", mktNetworkDetailRows, m.table)
+	var resp MktNetworkDetail
+	err := m.conn.QueryRow(&resp, query, id)
+	switch err {
+	case nil:
+		return &resp, nil
+	case sqlc.ErrNotFound:
+		return nil, ErrNotFound
+	default:
+		return nil, err
+	}
+}
+
+func (m *defaultMktNetworkDetailModel) Update(data MktNetworkDetail) error {
+	query := fmt.Sprintf("update %s set %s where `id` = ?", m.table, mktNetworkDetailRowsWithPlaceHolder)
+	_, err := m.conn.Exec(query, data.LastUpdateTime, data.CreateBy, data.LastUpdateBy, data.Parent, data.Inheritance, data.Remake, data.DelFlag, data.Qudao, data.Name, data.ChannelType, data.QueryType, data.Id)
+	return err
+}
+
+func (m *defaultMktNetworkDetailModel) Delete(id int64) error {
+	query := fmt.Sprintf("delete from %s where `id` = ?", m.table)
+	_, err := m.conn.Exec(query, id)
+	return err
+}

+ 85 - 0
model/sys_optionset_model.go

@@ -0,0 +1,85 @@
+package model
+
+import (
+	"database/sql"
+	"fmt"
+	"strings"
+	"time"
+
+	"git.i2edu.net/i2/go-zero/core/stores/sqlc"
+	"git.i2edu.net/i2/go-zero/core/stores/sqlx"
+	"git.i2edu.net/i2/go-zero/core/stringx"
+	"git.i2edu.net/i2/go-zero/tools/goctl/model/sql/builderx"
+)
+
+var (
+	sysOptionsetFieldNames          = builderx.RawFieldNames(&SysOptionset{})
+	sysOptionsetRows                = strings.Join(sysOptionsetFieldNames, ",")
+	sysOptionsetRowsExpectAutoSet   = strings.Join(stringx.Remove(sysOptionsetFieldNames, "`create_time`", "`update_time`"), ",")
+	sysOptionsetRowsWithPlaceHolder = strings.Join(stringx.Remove(sysOptionsetFieldNames, "`id`", "`create_time`", "`update_time`"), "=?,") + "=?"
+)
+
+type (
+	SysOptionsetModel interface {
+		Insert(data SysOptionset) (sql.Result, error)
+		FindOne(id string) (*SysOptionset, error)
+		Update(data SysOptionset) error
+		Delete(id string) error
+	}
+
+	defaultSysOptionsetModel struct {
+		conn  sqlx.SqlConn
+		table string
+	}
+
+	SysOptionset struct {
+		DelFlag        int64     `db:"del_flag" json:"del_flag"`
+		Name           string    `db:"name" json:"name"`
+		Code           string    `db:"code" json:"code"`
+		CreateTime     time.Time `db:"create_time" json:"create_time"`
+		LastUpdateBy   string    `db:"last_update_by" json:"last_update_by"`
+		LastUpdateTime int64     `db:"last_update_time" json:"last_update_time"`
+		Id             string    `db:"id" json:"id"`
+		Value          string    `db:"value" json:"value"`
+		CreateBy       string    `db:"create_by" json:"create_by"`
+	}
+)
+
+func NewSysOptionsetModel(conn sqlx.SqlConn) SysOptionsetModel {
+	return &defaultSysOptionsetModel{
+		conn:  conn,
+		table: "`sys_optionset`",
+	}
+}
+
+func (m *defaultSysOptionsetModel) Insert(data SysOptionset) (sql.Result, error) {
+	query := fmt.Sprintf("insert into %s (%s) values (?, ?, ?, ?, ?, ?, ?, ?)", m.table, sysOptionsetRowsExpectAutoSet)
+	ret, err := m.conn.Exec(query, data.DelFlag, data.Name, data.Code, data.LastUpdateBy, data.LastUpdateTime, data.Id, data.Value, data.CreateBy)
+	return ret, err
+}
+
+func (m *defaultSysOptionsetModel) FindOne(id string) (*SysOptionset, error) {
+	query := fmt.Sprintf("select %s from %s where `id` = ? limit 1", sysOptionsetRows, m.table)
+	var resp SysOptionset
+	err := m.conn.QueryRow(&resp, query, id)
+	switch err {
+	case nil:
+		return &resp, nil
+	case sqlc.ErrNotFound:
+		return nil, ErrNotFound
+	default:
+		return nil, err
+	}
+}
+
+func (m *defaultSysOptionsetModel) Update(data SysOptionset) error {
+	query := fmt.Sprintf("update %s set %s where `id` = ?", m.table, sysOptionsetRowsWithPlaceHolder)
+	_, err := m.conn.Exec(query, data.DelFlag, data.Name, data.Code, data.LastUpdateBy, data.LastUpdateTime, data.Value, data.CreateBy, data.Id)
+	return err
+}
+
+func (m *defaultSysOptionsetModel) Delete(id string) error {
+	query := fmt.Sprintf("delete from %s where `id` = ?", m.table)
+	_, err := m.conn.Exec(query, id)
+	return err
+}

+ 16 - 0
proto/base_organ_school.proto

@@ -0,0 +1,16 @@
+syntax = "proto3";
+
+package transform;
+
+message GetErpOrganSchPerByUserIdReq{
+  string user_id = 1;
+}
+
+message GetErpOrganSchPerByUserIdResp{
+  repeated  ValueText data = 2;
+}
+
+message ValueText {
+  int64 value = 1;
+  string text = 2;
+}

+ 6 - 2
transform.proto

@@ -2,6 +2,7 @@ syntax = "proto3";
 
 package transform;
 
+import  "base_organ_school.proto";
 message UserRequest {
   string id = 1;
   string phone = 2;
@@ -69,9 +70,12 @@ message ResponseByte{
 service Transform {
   rpc GetUser(UserRequest) returns(UserResponse);
   rpc ParseToken(TokenRequest) returns(TokenResponse);
+  //获取erp 省、城市树
   rpc GetErpCityTree(Empty) returns(TreeNodes);
+  //获取erp  字典
   rpc GetErpOptionset(OptionCode) returns(Options);
+  //获取erp 渠道细分树
   rpc GetErpMktNetWorkDetailTree(Empty) returns(TreeNodes);
-  rpc GetErpSchool(Empty) returns(ResponseByte);
-  rpc GetErpActive(Empty) returns(ResponseByte);
+  //获取erp 用户权限
+  rpc GetErpOrganSchPerByUserId(GetErpOrganSchPerByUserIdReq) returns(GetErpOrganSchPerByUserIdResp);
 }

+ 285 - 0
transform/base_organ_school.pb.go

@@ -0,0 +1,285 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// 	protoc-gen-go v1.23.0
+// 	protoc        v3.12.3
+// source: base_organ_school.proto
+
+package transform
+
+import (
+	proto "github.com/golang/protobuf/proto"
+	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	reflect "reflect"
+	sync "sync"
+)
+
+const (
+	// Verify that this generated code is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+	// Verify that runtime/protoimpl is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+// This is a compile-time assertion that a sufficiently up-to-date version
+// of the legacy proto package is being used.
+const _ = proto.ProtoPackageIsVersion4
+
+type GetErpOrganSchPerByUserIdReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
+}
+
+func (x *GetErpOrganSchPerByUserIdReq) Reset() {
+	*x = GetErpOrganSchPerByUserIdReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_organ_school_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *GetErpOrganSchPerByUserIdReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetErpOrganSchPerByUserIdReq) ProtoMessage() {}
+
+func (x *GetErpOrganSchPerByUserIdReq) ProtoReflect() protoreflect.Message {
+	mi := &file_base_organ_school_proto_msgTypes[0]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetErpOrganSchPerByUserIdReq.ProtoReflect.Descriptor instead.
+func (*GetErpOrganSchPerByUserIdReq) Descriptor() ([]byte, []int) {
+	return file_base_organ_school_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *GetErpOrganSchPerByUserIdReq) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
+type GetErpOrganSchPerByUserIdResp struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Data []*ValueText `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
+}
+
+func (x *GetErpOrganSchPerByUserIdResp) Reset() {
+	*x = GetErpOrganSchPerByUserIdResp{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_organ_school_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *GetErpOrganSchPerByUserIdResp) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetErpOrganSchPerByUserIdResp) ProtoMessage() {}
+
+func (x *GetErpOrganSchPerByUserIdResp) ProtoReflect() protoreflect.Message {
+	mi := &file_base_organ_school_proto_msgTypes[1]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use GetErpOrganSchPerByUserIdResp.ProtoReflect.Descriptor instead.
+func (*GetErpOrganSchPerByUserIdResp) Descriptor() ([]byte, []int) {
+	return file_base_organ_school_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *GetErpOrganSchPerByUserIdResp) GetData() []*ValueText {
+	if x != nil {
+		return x.Data
+	}
+	return nil
+}
+
+type ValueText struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Value int64  `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
+	Text  string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
+}
+
+func (x *ValueText) Reset() {
+	*x = ValueText{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_organ_school_proto_msgTypes[2]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ValueText) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ValueText) ProtoMessage() {}
+
+func (x *ValueText) ProtoReflect() protoreflect.Message {
+	mi := &file_base_organ_school_proto_msgTypes[2]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use ValueText.ProtoReflect.Descriptor instead.
+func (*ValueText) Descriptor() ([]byte, []int) {
+	return file_base_organ_school_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *ValueText) GetValue() int64 {
+	if x != nil {
+		return x.Value
+	}
+	return 0
+}
+
+func (x *ValueText) GetText() string {
+	if x != nil {
+		return x.Text
+	}
+	return ""
+}
+
+var File_base_organ_school_proto protoreflect.FileDescriptor
+
+var file_base_organ_school_proto_rawDesc = []byte{
+	0x0a, 0x17, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x5f, 0x73, 0x63, 0x68,
+	0x6f, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73,
+	0x66, 0x6f, 0x72, 0x6d, 0x22, 0x37, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72,
+	0x67, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49,
+	0x64, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
+	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x49, 0x0a,
+	0x1d, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x50,
+	0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28,
+	0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
+	0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x65,
+	0x78, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x09, 0x56, 0x61, 0x6c, 0x75,
+	0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74,
+	0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+	file_base_organ_school_proto_rawDescOnce sync.Once
+	file_base_organ_school_proto_rawDescData = file_base_organ_school_proto_rawDesc
+)
+
+func file_base_organ_school_proto_rawDescGZIP() []byte {
+	file_base_organ_school_proto_rawDescOnce.Do(func() {
+		file_base_organ_school_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_organ_school_proto_rawDescData)
+	})
+	return file_base_organ_school_proto_rawDescData
+}
+
+var file_base_organ_school_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_base_organ_school_proto_goTypes = []interface{}{
+	(*GetErpOrganSchPerByUserIdReq)(nil),  // 0: transform.GetErpOrganSchPerByUserIdReq
+	(*GetErpOrganSchPerByUserIdResp)(nil), // 1: transform.GetErpOrganSchPerByUserIdResp
+	(*ValueText)(nil),                     // 2: transform.ValueText
+}
+var file_base_organ_school_proto_depIdxs = []int32{
+	2, // 0: transform.GetErpOrganSchPerByUserIdResp.data:type_name -> transform.ValueText
+	1, // [1:1] is the sub-list for method output_type
+	1, // [1:1] is the sub-list for method input_type
+	1, // [1:1] is the sub-list for extension type_name
+	1, // [1:1] is the sub-list for extension extendee
+	0, // [0:1] is the sub-list for field type_name
+}
+
+func init() { file_base_organ_school_proto_init() }
+func file_base_organ_school_proto_init() {
+	if File_base_organ_school_proto != nil {
+		return
+	}
+	if !protoimpl.UnsafeEnabled {
+		file_base_organ_school_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*GetErpOrganSchPerByUserIdReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_organ_school_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*GetErpOrganSchPerByUserIdResp); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_organ_school_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ValueText); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+	}
+	type x struct{}
+	out := protoimpl.TypeBuilder{
+		File: protoimpl.DescBuilder{
+			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+			RawDescriptor: file_base_organ_school_proto_rawDesc,
+			NumEnums:      0,
+			NumMessages:   3,
+			NumExtensions: 0,
+			NumServices:   0,
+		},
+		GoTypes:           file_base_organ_school_proto_goTypes,
+		DependencyIndexes: file_base_organ_school_proto_depIdxs,
+		MessageInfos:      file_base_organ_school_proto_msgTypes,
+	}.Build()
+	File_base_organ_school_proto = out.File
+	file_base_organ_school_proto_rawDesc = nil
+	file_base_organ_school_proto_goTypes = nil
+	file_base_organ_school_proto_depIdxs = nil
+}

+ 228 - 108
transform/transform.pb.go

@@ -658,90 +658,148 @@ func (x *Options) GetValue() string {
 	return ""
 }
 
+type ResponseByte struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
+}
+
+func (x *ResponseByte) Reset() {
+	*x = ResponseByte{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_transform_proto_msgTypes[10]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ResponseByte) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ResponseByte) ProtoMessage() {}
+
+func (x *ResponseByte) ProtoReflect() protoreflect.Message {
+	mi := &file_transform_proto_msgTypes[10]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use ResponseByte.ProtoReflect.Descriptor instead.
+func (*ResponseByte) Descriptor() ([]byte, []int) {
+	return file_transform_proto_rawDescGZIP(), []int{10}
+}
+
+func (x *ResponseByte) GetData() []byte {
+	if x != nil {
+		return x.Data
+	}
+	return nil
+}
+
 var File_transform_proto protoreflect.FileDescriptor
 
 var file_transform_proto_rawDesc = []byte{
 	0x0a, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x33, 0x0a, 0x0b,
-	0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+	0x6f, 0x12, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x1a, 0x17, 0x62, 0x61,
+	0x73, 0x65, 0x5f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x2e,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55,
+	0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
 	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
 	0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e,
-	0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
-	0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
-	0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65,
-	0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16,
-	0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
-	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c,
-	0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70,
-	0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
-	0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
-	0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
-	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65,
-	0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
-	0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65,
-	0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
-	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xff,
-	0x01, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
-	0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
-	0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72,
-	0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x55,
-	0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x55, 0x73,
-	0x65, 0x72, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x73,
-	0x12, 0x28, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
-	0x49, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50,
-	0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x55, 0x73,
-	0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
-	0x52, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x20,
-	0x0a, 0x0b, 0x53, 0x79, 0x73, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x18, 0x06, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x0b, 0x53, 0x79, 0x73, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64,
-	0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x07,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x53, 0x79, 0x73, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64,
-	0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65,
-	0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18,
-	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
-	0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65,
-	0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e,
-	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
-	0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
-	0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
-	0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61,
-	0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
-	0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05,
-	0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72,
-	0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65,
-	0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x29, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e,
-	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
-	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
-	0x6d, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65,
-	0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
-	0x63, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,
-	0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
-	0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
-	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xc6, 0x02,
-	0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47,
-	0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
-	0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
-	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
-	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65,
-	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
-	0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18,
-	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
-	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45,
-	0x72, 0x70, 0x43, 0x69, 0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61,
-	0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74,
-	0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64,
-	0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x70, 0x74, 0x69,
-	0x6f, 0x6e, 0x73, 0x65, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
-	0x6d, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x12, 0x2e, 0x74,
-	0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
-	0x12, 0x44, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4d, 0x6b, 0x74, 0x4e, 0x65, 0x74,
-	0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10,
-	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
-	0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65,
-	0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
+	0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
+	0x20, 0x0a, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x72, 0x70, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70,
+	0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a,
+	0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e,
+	0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
+	0x72, 0x22, 0x24, 0x0a, 0x0c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+	0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xff, 0x01, 0x0a, 0x0d, 0x54, 0x6f, 0x6b, 0x65,
+	0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65,
+	0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49,
+	0x64, 0x12, 0x20, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x73,
+	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65,
+	0x49, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x53, 0x63, 0x68, 0x6f, 0x6f,
+	0x6c, 0x49, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x55, 0x73, 0x65, 0x72,
+	0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x55, 0x73, 0x65,
+	0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
+	0x49, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x67, 0x61, 0x6e,
+	0x49, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4f,
+	0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x53, 0x79, 0x73, 0x53, 0x63,
+	0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x53, 0x79,
+	0x73, 0x53, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x79, 0x73,
+	0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x53,
+	0x79, 0x73, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70,
+	0x74, 0x79, 0x22, 0x36, 0x0a, 0x09, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12,
+	0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13,
+	0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e,
+	0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x08, 0x54,
+	0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,
+	0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x61, 0x72,
+	0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
+	0x32, 0x0e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x61, 0x67,
+	0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05,
+	0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
+	0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73,
+	0x22, 0x29, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x4f,
+	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
+	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x47, 0x0a,
+	0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
+	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04,
+	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+	0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+	0x73, 0x65, 0x42, 0x79, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xb6, 0x03, 0x0a, 0x09, 0x54,
+	0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
+	0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x72,
+	0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
+	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b,
+	0x65, 0x6e, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54,
+	0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x72,
+	0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73,
+	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x43,
+	0x69, 0x74, 0x79, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66,
+	0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x6e,
+	0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12,
+	0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+	0x65, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f,
+	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x12, 0x2e, 0x74, 0x72, 0x61, 0x6e,
+	0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x44, 0x0a,
+	0x1a, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4d, 0x6b, 0x74, 0x4e, 0x65, 0x74, 0x57, 0x6f, 0x72,
+	0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x54, 0x72, 0x65, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72,
+	0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e,
+	0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x54, 0x72, 0x65, 0x65, 0x4e, 0x6f,
+	0x64, 0x65, 0x73, 0x12, 0x6e, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67,
+	0x61, 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
+	0x12, 0x27, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74,
+	0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79,
+	0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x74, 0x72, 0x61, 0x6e,
+	0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x72, 0x70, 0x4f, 0x72, 0x67, 0x61,
+	0x6e, 0x53, 0x63, 0x68, 0x50, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
+	0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -756,38 +814,43 @@ func file_transform_proto_rawDescGZIP() []byte {
 	return file_transform_proto_rawDescData
 }
 
-var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
+var file_transform_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
 var file_transform_proto_goTypes = []interface{}{
-	(*UserRequest)(nil),   // 0: transform.UserRequest
-	(*UserResponse)(nil),  // 1: transform.UserResponse
-	(*TokenRequest)(nil),  // 2: transform.TokenRequest
-	(*TokenResponse)(nil), // 3: transform.TokenResponse
-	(*Empty)(nil),         // 4: transform.Empty
-	(*TreeNodes)(nil),     // 5: transform.TreeNodes
-	(*TreeNode)(nil),      // 6: transform.TreeNode
-	(*Tag)(nil),           // 7: transform.Tag
-	(*OptionCode)(nil),    // 8: transform.OptionCode
-	(*Options)(nil),       // 9: transform.Options
+	(*UserRequest)(nil),                   // 0: transform.UserRequest
+	(*UserResponse)(nil),                  // 1: transform.UserResponse
+	(*TokenRequest)(nil),                  // 2: transform.TokenRequest
+	(*TokenResponse)(nil),                 // 3: transform.TokenResponse
+	(*Empty)(nil),                         // 4: transform.Empty
+	(*TreeNodes)(nil),                     // 5: transform.TreeNodes
+	(*TreeNode)(nil),                      // 6: transform.TreeNode
+	(*Tag)(nil),                           // 7: transform.Tag
+	(*OptionCode)(nil),                    // 8: transform.OptionCode
+	(*Options)(nil),                       // 9: transform.Options
+	(*ResponseByte)(nil),                  // 10: transform.ResponseByte
+	(*GetErpOrganSchPerByUserIdReq)(nil),  // 11: transform.GetErpOrganSchPerByUserIdReq
+	(*GetErpOrganSchPerByUserIdResp)(nil), // 12: transform.GetErpOrganSchPerByUserIdResp
 }
 var file_transform_proto_depIdxs = []int32{
-	6, // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
-	7, // 1: transform.TreeNode.tag:type_name -> transform.Tag
-	6, // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
-	0, // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
-	2, // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
-	4, // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
-	8, // 6: transform.Transform.GetErpOptionset:input_type -> transform.OptionCode
-	4, // 7: transform.Transform.GetErpMktNetWorkDetailTree:input_type -> transform.Empty
-	1, // 8: transform.Transform.GetUser:output_type -> transform.UserResponse
-	3, // 9: transform.Transform.ParseToken:output_type -> transform.TokenResponse
-	5, // 10: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
-	9, // 11: transform.Transform.GetErpOptionset:output_type -> transform.Options
-	5, // 12: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
-	8, // [8:13] is the sub-list for method output_type
-	3, // [3:8] is the sub-list for method input_type
-	3, // [3:3] is the sub-list for extension type_name
-	3, // [3:3] is the sub-list for extension extendee
-	0, // [0:3] is the sub-list for field type_name
+	6,  // 0: transform.TreeNodes.nodes:type_name -> transform.TreeNode
+	7,  // 1: transform.TreeNode.tag:type_name -> transform.Tag
+	6,  // 2: transform.TreeNode.nodes:type_name -> transform.TreeNode
+	0,  // 3: transform.Transform.GetUser:input_type -> transform.UserRequest
+	2,  // 4: transform.Transform.ParseToken:input_type -> transform.TokenRequest
+	4,  // 5: transform.Transform.GetErpCityTree:input_type -> transform.Empty
+	8,  // 6: transform.Transform.GetErpOptionset:input_type -> transform.OptionCode
+	4,  // 7: transform.Transform.GetErpMktNetWorkDetailTree:input_type -> transform.Empty
+	11, // 8: transform.Transform.GetErpOrganSchPerByUserId:input_type -> transform.GetErpOrganSchPerByUserIdReq
+	1,  // 9: transform.Transform.GetUser:output_type -> transform.UserResponse
+	3,  // 10: transform.Transform.ParseToken:output_type -> transform.TokenResponse
+	5,  // 11: transform.Transform.GetErpCityTree:output_type -> transform.TreeNodes
+	9,  // 12: transform.Transform.GetErpOptionset:output_type -> transform.Options
+	5,  // 13: transform.Transform.GetErpMktNetWorkDetailTree:output_type -> transform.TreeNodes
+	12, // 14: transform.Transform.GetErpOrganSchPerByUserId:output_type -> transform.GetErpOrganSchPerByUserIdResp
+	9,  // [9:15] is the sub-list for method output_type
+	3,  // [3:9] is the sub-list for method input_type
+	3,  // [3:3] is the sub-list for extension type_name
+	3,  // [3:3] is the sub-list for extension extendee
+	0,  // [0:3] is the sub-list for field type_name
 }
 
 func init() { file_transform_proto_init() }
@@ -795,6 +858,7 @@ func file_transform_proto_init() {
 	if File_transform_proto != nil {
 		return
 	}
+	file_base_organ_school_proto_init()
 	if !protoimpl.UnsafeEnabled {
 		file_transform_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*UserRequest); i {
@@ -916,6 +980,18 @@ func file_transform_proto_init() {
 				return nil
 			}
 		}
+		file_transform_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ResponseByte); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -923,7 +999,7 @@ func file_transform_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_transform_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   10,
+			NumMessages:   11,
 			NumExtensions: 0,
 			NumServices:   1,
 		},
@@ -951,9 +1027,14 @@ const _ = grpc.SupportPackageIsVersion6
 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)
+	//获取erp 省、城市树
 	GetErpCityTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
+	//获取erp  字典
 	GetErpOptionset(ctx context.Context, in *OptionCode, opts ...grpc.CallOption) (*Options, error)
+	//获取erp 渠道细分树
 	GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TreeNodes, error)
+	//获取erp 用户权限
+	GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq, opts ...grpc.CallOption) (*GetErpOrganSchPerByUserIdResp, error)
 }
 
 type transformClient struct {
@@ -1009,13 +1090,27 @@ func (c *transformClient) GetErpMktNetWorkDetailTree(ctx context.Context, in *Em
 	return out, nil
 }
 
+func (c *transformClient) GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq, opts ...grpc.CallOption) (*GetErpOrganSchPerByUserIdResp, error) {
+	out := new(GetErpOrganSchPerByUserIdResp)
+	err := c.cc.Invoke(ctx, "/transform.Transform/GetErpOrganSchPerByUserId", 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)
+	//获取erp 省、城市树
 	GetErpCityTree(context.Context, *Empty) (*TreeNodes, error)
+	//获取erp  字典
 	GetErpOptionset(context.Context, *OptionCode) (*Options, error)
+	//获取erp 渠道细分树
 	GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error)
+	//获取erp 用户权限
+	GetErpOrganSchPerByUserId(context.Context, *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error)
 }
 
 // UnimplementedTransformServer can be embedded to have forward compatible implementations.
@@ -1037,6 +1132,9 @@ func (*UnimplementedTransformServer) GetErpOptionset(context.Context, *OptionCod
 func (*UnimplementedTransformServer) GetErpMktNetWorkDetailTree(context.Context, *Empty) (*TreeNodes, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetErpMktNetWorkDetailTree not implemented")
 }
+func (*UnimplementedTransformServer) GetErpOrganSchPerByUserId(context.Context, *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetErpOrganSchPerByUserId not implemented")
+}
 
 func RegisterTransformServer(s *grpc.Server, srv TransformServer) {
 	s.RegisterService(&_Transform_serviceDesc, srv)
@@ -1132,6 +1230,24 @@ func _Transform_GetErpMktNetWorkDetailTree_Handler(srv interface{}, ctx context.
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Transform_GetErpOrganSchPerByUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(GetErpOrganSchPerByUserIdReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(TransformServer).GetErpOrganSchPerByUserId(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/transform.Transform/GetErpOrganSchPerByUserId",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(TransformServer).GetErpOrganSchPerByUserId(ctx, req.(*GetErpOrganSchPerByUserIdReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 var _Transform_serviceDesc = grpc.ServiceDesc{
 	ServiceName: "transform.Transform",
 	HandlerType: (*TransformServer)(nil),
@@ -1156,6 +1272,10 @@ var _Transform_serviceDesc = grpc.ServiceDesc{
 			MethodName: "GetErpMktNetWorkDetailTree",
 			Handler:    _Transform_GetErpMktNetWorkDetailTree_Handler,
 		},
+		{
+			MethodName: "GetErpOrganSchPerByUserId",
+			Handler:    _Transform_GetErpOrganSchPerByUserId_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "transform.proto",

+ 22 - 7
transformclient/transform.go

@@ -10,27 +10,33 @@ import (
 
 	"git.i2edu.net/i2/i2-bill-erp/transform"
 
-	"git.i2edu.net/i2/go-zero/zrpc"
+	"github.com/tal-tech/go-zero/zrpc"
 )
 
 type (
-	UserResponse  = transform.UserResponse
-	TreeNodes     = transform.TreeNodes
+	Tag           = transform.Tag
 	OptionCode    = transform.OptionCode
-	Options       = transform.Options
-	UserRequest   = transform.UserRequest
+	ResponseByte  = transform.ResponseByte
+	UserResponse  = transform.UserResponse
 	TokenRequest  = transform.TokenRequest
 	TokenResponse = transform.TokenResponse
-	Empty         = transform.Empty
+	TreeNodes     = transform.TreeNodes
 	TreeNode      = transform.TreeNode
-	Tag           = transform.Tag
+	UserRequest   = transform.UserRequest
+	Empty         = transform.Empty
+	Options       = transform.Options
 
 	Transform interface {
 		GetUser(ctx context.Context, in *UserRequest) (*UserResponse, error)
 		ParseToken(ctx context.Context, in *TokenRequest) (*TokenResponse, error)
+		// 获取erp 省、城市树
 		GetErpCityTree(ctx context.Context, in *Empty) (*TreeNodes, error)
+		// 获取erp  字典
 		GetErpOptionset(ctx context.Context, in *OptionCode) (*Options, error)
+		// 获取erp 渠道细分树
 		GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error)
+		// 获取erp 用户权限
+		GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error)
 	}
 
 	defaultTransform struct {
@@ -54,17 +60,26 @@ func (m *defaultTransform) ParseToken(ctx context.Context, in *TokenRequest) (*T
 	return client.ParseToken(ctx, in)
 }
 
+// 获取erp 省、城市树
 func (m *defaultTransform) GetErpCityTree(ctx context.Context, in *Empty) (*TreeNodes, error) {
 	client := transform.NewTransformClient(m.cli.Conn())
 	return client.GetErpCityTree(ctx, in)
 }
 
+// 获取erp  字典
 func (m *defaultTransform) GetErpOptionset(ctx context.Context, in *OptionCode) (*Options, error) {
 	client := transform.NewTransformClient(m.cli.Conn())
 	return client.GetErpOptionset(ctx, in)
 }
 
+// 获取erp 渠道细分树
 func (m *defaultTransform) GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error) {
 	client := transform.NewTransformClient(m.cli.Conn())
 	return client.GetErpMktNetWorkDetailTree(ctx, in)
 }
+
+// 获取erp 用户权限
+func (m *defaultTransform) GetErpOrganSchPerByUserId(ctx context.Context, in *GetErpOrganSchPerByUserIdReq) (*GetErpOrganSchPerByUserIdResp, error) {
+	client := transform.NewTransformClient(m.cli.Conn())
+	return client.GetErpOrganSchPerByUserId(ctx, in)
+}