| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- // 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)
- }
- // 获取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) 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)
- }
- // 获取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.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)
- }
|