// Code generated by goctl. DO NOT EDIT! // Source: transform.proto package server import ( "context" "git.i2edu.net/i2/i2-bill-erp/internal/logic" "git.i2edu.net/i2/i2-bill-erp/internal/svc" "git.i2edu.net/i2/i2-bill-erp/transform" ) type TransformServer struct { svcCtx *svc.ServiceContext } func NewTransformServer(svcCtx *svc.ServiceContext) *TransformServer { return &TransformServer{ svcCtx: svcCtx, } } func (s *TransformServer) GetUser(ctx context.Context, in *transform.UserRequest) (*transform.UserResponse, error) { l := logic.NewGetUserLogic(ctx, s.svcCtx) return l.GetUser(in) } func (s *TransformServer) ParseToken(ctx context.Context, in *transform.TokenRequest) (*transform.TokenResponse, error) { l := logic.NewParseTokenLogic(ctx, s.svcCtx) 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) } func (s *TransformServer) AddMkt(ctx context.Context, in *transform.MktReq) (*transform.MktRes, error) { l := logic.NewAddMktLogic(ctx, s.svcCtx) return l.AddMkt(in) } // 获取erp 字典 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) GetSchoolIds(ctx context.Context, in *transform.SchoolIdsReq) (*transform.SchoolIdsRes, error) { l := logic.NewGetSchoolIdsLogic(ctx, s.svcCtx) return l.GetSchoolIds(in) } func (s *TransformServer) GetCityIds(ctx context.Context, in *transform.CityIdsReq) (*transform.CityIdsRes, error) { l := logic.NewGetCityIdsLogic(ctx, s.svcCtx) return l.GetCityIds(in) } func (s *TransformServer) GetMkIds(ctx context.Context, in *transform.CityMkReq) (*transform.CityMkRes, error) { l := logic.NewGetMkIdsLogic(ctx, s.svcCtx) return l.GetMkIds(in) } func (s *TransformServer) PostExcelLog(ctx context.Context, in *transform.ExcelLogReq) (*transform.ExcelLogRes, error) { l := logic.NewPostExcelLogLogic(ctx, s.svcCtx) return l.PostExcelLog(in) } func (s *TransformServer) GetErpOptionset(ctx context.Context, in *transform.OptionCode) (*transform.Options, error) { l := logic.NewGetErpOptionsetLogic(ctx, s.svcCtx) return l.GetErpOptionset(in) } func (s *TransformServer) GetStudent(ctx context.Context, in *transform.StudentReq) (*transform.StudentRes, error) { l := logic.NewGetStudentLogic(ctx, s.svcCtx) return l.GetStudent(in) } // 获取数据权限 func (s *TransformServer) GetDataPermission(ctx context.Context, in *transform.DataPermissionReq) (*transform.DataPermissionRes, error) { l := logic.NewGetDataPermissionLogic(ctx, s.svcCtx) return l.GetDataPermission(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) GetErpMktNetWorkDetail(ctx context.Context, in *transform.ErpMktNetWorkDetailReq) (*transform.ErpMktNetWorkDetailRes, error) { l := logic.NewGetErpMktNetWorkDetailLogic(ctx, s.svcCtx) return l.GetErpMktNetWorkDetail(in) } // 获取erp 用户校区权限 func (s *TransformServer) GetErpOrganSchPerByUserId(ctx context.Context, in *transform.GetErpOrganSchPerByUserIdReq) (*transform.GetErpOrganSchPerByUserIdRes, error) { l := logic.NewGetErpOrganSchPerByUserIdLogic(ctx, s.svcCtx) return l.GetErpOrganSchPerByUserId(in) } // 获取 erp 用户角色 func (s *TransformServer) GetErpRole(ctx context.Context, in *transform.GetErpRoleReq) (*transform.GetErpRoleRes, error) { l := logic.NewGetErpRoleLogic(ctx, s.svcCtx) return l.GetErpRole(in) } // 获取 erp 全部校区 func (s *TransformServer) GetErpSchool(ctx context.Context, in *transform.Empty) (*transform.GetErpSchoolRes, error) { l := logic.NewGetErpSchoolLogic(ctx, s.svcCtx) return l.GetErpSchool(in) } // 获取 erp 活动 func (s *TransformServer) GetErpActive(ctx context.Context, in *transform.GetErpActiveReq) (*transform.GetErpActiveRes, error) { l := logic.NewGetErpActiveLogic(ctx, s.svcCtx) return l.GetErpActive(in) } // 获取erp 省、城、校区 func (s *TransformServer) GetErpOrganSchTree(ctx context.Context, in *transform.Empty) (*transform.TreeNodes, error) { l := logic.NewGetErpOrganSchTreeLogic(ctx, s.svcCtx) return l.GetErpOrganSchTree(in) } // 查看erp用户是否正常 func (s *TransformServer) GetErpUser(ctx context.Context, in *transform.ErpUserReq) (*transform.ErpUserRes, error) { l := logic.NewGetErpUserLogic(ctx, s.svcCtx) return l.GetErpUser(in) }