|
@@ -10,36 +10,43 @@ import (
|
|
|
|
|
|
|
|
"git.i2edu.net/i2/i2-bill-erp/transform"
|
|
"git.i2edu.net/i2/i2-bill-erp/transform"
|
|
|
|
|
|
|
|
- "git.i2edu.net/i2/go-zero/zrpc"
|
|
|
|
|
|
|
+ "github.com/tal-tech/go-zero/zrpc"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
type (
|
|
type (
|
|
|
- GetErpActiveReq = transform.GetErpActiveReq
|
|
|
|
|
TokenResponse = transform.TokenResponse
|
|
TokenResponse = transform.TokenResponse
|
|
|
- TreeNode = transform.TreeNode
|
|
|
|
|
- OptionsetRes = transform.OptionsetRes
|
|
|
|
|
|
|
+ Empty = transform.Empty
|
|
|
Options = transform.Options
|
|
Options = transform.Options
|
|
|
- ExcelLogReq = transform.ExcelLogReq
|
|
|
|
|
- BytesReq = transform.BytesReq
|
|
|
|
|
|
|
+ CityIdsReq = transform.CityIdsReq
|
|
|
|
|
+ DataPermissionRes = transform.DataPermissionRes
|
|
|
|
|
+ UserRequest = transform.UserRequest
|
|
|
|
|
+ Tag = transform.Tag
|
|
|
|
|
+ OptionsetRes = transform.OptionsetRes
|
|
|
|
|
+ ExcelLogRes = transform.ExcelLogRes
|
|
|
GetErpRoleReq = transform.GetErpRoleReq
|
|
GetErpRoleReq = transform.GetErpRoleReq
|
|
|
- GetErpSchoolRes = transform.GetErpSchoolRes
|
|
|
|
|
- Empty = transform.Empty
|
|
|
|
|
- TreeNodes = transform.TreeNodes
|
|
|
|
|
- OptionsetReq = transform.OptionsetReq
|
|
|
|
|
- ResponseByte = transform.ResponseByte
|
|
|
|
|
- BytesResp = transform.BytesResp
|
|
|
|
|
GetErpOrganSchPerByUserIdReq = transform.GetErpOrganSchPerByUserIdReq
|
|
GetErpOrganSchPerByUserIdReq = transform.GetErpOrganSchPerByUserIdReq
|
|
|
- GetErpOrganSchPerByUserIdRes = transform.GetErpOrganSchPerByUserIdRes
|
|
|
|
|
- GetErpActiveRes = transform.GetErpActiveRes
|
|
|
|
|
|
|
+ OrganSchool = transform.OrganSchool
|
|
|
|
|
+ GetErpActiveReq = transform.GetErpActiveReq
|
|
|
UserResponse = transform.UserResponse
|
|
UserResponse = transform.UserResponse
|
|
|
- Tag = transform.Tag
|
|
|
|
|
- ExcelLogRes = transform.ExcelLogRes
|
|
|
|
|
- Active = transform.Active
|
|
|
|
|
- UserRequest = transform.UserRequest
|
|
|
|
|
|
|
+ ExcelLogReq = transform.ExcelLogReq
|
|
|
|
|
+ TreeNode = transform.TreeNode
|
|
|
|
|
+ GetErpSchoolRes = transform.GetErpSchoolRes
|
|
|
|
|
+ DataPermissionReq = transform.DataPermissionReq
|
|
|
TokenRequest = transform.TokenRequest
|
|
TokenRequest = transform.TokenRequest
|
|
|
|
|
+ TreeNodes = transform.TreeNodes
|
|
|
|
|
+ BytesReq = transform.BytesReq
|
|
|
OptionCode = transform.OptionCode
|
|
OptionCode = transform.OptionCode
|
|
|
|
|
+ SchoolIdsReq = transform.SchoolIdsReq
|
|
|
|
|
+ SchoolIdsRes = transform.SchoolIdsRes
|
|
|
|
|
+ CityIdsRes = transform.CityIdsRes
|
|
|
|
|
+ GetErpOrganSchPerByUserIdRes = transform.GetErpOrganSchPerByUserIdRes
|
|
|
|
|
+ BytesResp = transform.BytesResp
|
|
|
|
|
+ GetErpActiveRes = transform.GetErpActiveRes
|
|
|
|
|
+ OptionsetReq = transform.OptionsetReq
|
|
|
|
|
+ ResponseByte = transform.ResponseByte
|
|
|
|
|
+ ListOfInt = transform.ListOfInt
|
|
|
GetErpRoleRes = transform.GetErpRoleRes
|
|
GetErpRoleRes = transform.GetErpRoleRes
|
|
|
- OrganSchool = transform.OrganSchool
|
|
|
|
|
|
|
+ Active = transform.Active
|
|
|
|
|
|
|
|
Transform interface {
|
|
Transform interface {
|
|
|
GetUser(ctx context.Context, in *UserRequest) (*UserResponse, error)
|
|
GetUser(ctx context.Context, in *UserRequest) (*UserResponse, error)
|
|
@@ -48,8 +55,12 @@ type (
|
|
|
GetErpCityTree(ctx context.Context, in *Empty) (*TreeNodes, error)
|
|
GetErpCityTree(ctx context.Context, in *Empty) (*TreeNodes, error)
|
|
|
// 获取erp 字典
|
|
// 获取erp 字典
|
|
|
LoadOptionset(ctx context.Context, in *OptionsetReq) (*OptionsetRes, error)
|
|
LoadOptionset(ctx context.Context, in *OptionsetReq) (*OptionsetRes, error)
|
|
|
|
|
+ GetSchoolIds(ctx context.Context, in *SchoolIdsReq) (*SchoolIdsRes, error)
|
|
|
|
|
+ GetCityIds(ctx context.Context, in *CityIdsReq) (*CityIdsRes, error)
|
|
|
PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error)
|
|
PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error)
|
|
|
GetErpOptionset(ctx context.Context, in *OptionCode) (*Options, error)
|
|
GetErpOptionset(ctx context.Context, in *OptionCode) (*Options, error)
|
|
|
|
|
+ // 获取数据权限
|
|
|
|
|
+ GetDataPermission(ctx context.Context, in *DataPermissionReq) (*DataPermissionRes, error)
|
|
|
// 获取erp 渠道细分树
|
|
// 获取erp 渠道细分树
|
|
|
GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error)
|
|
GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error)
|
|
|
// 获取erp 用户校区权限
|
|
// 获取erp 用户校区权限
|
|
@@ -97,6 +108,16 @@ func (m *defaultTransform) LoadOptionset(ctx context.Context, in *OptionsetReq)
|
|
|
return client.LoadOptionset(ctx, in)
|
|
return client.LoadOptionset(ctx, in)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (m *defaultTransform) GetSchoolIds(ctx context.Context, in *SchoolIdsReq) (*SchoolIdsRes, error) {
|
|
|
|
|
+ client := transform.NewTransformClient(m.cli.Conn())
|
|
|
|
|
+ return client.GetSchoolIds(ctx, in)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (m *defaultTransform) GetCityIds(ctx context.Context, in *CityIdsReq) (*CityIdsRes, error) {
|
|
|
|
|
+ client := transform.NewTransformClient(m.cli.Conn())
|
|
|
|
|
+ return client.GetCityIds(ctx, in)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (m *defaultTransform) PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error) {
|
|
func (m *defaultTransform) PostExcelLog(ctx context.Context, in *ExcelLogReq) (*ExcelLogRes, error) {
|
|
|
client := transform.NewTransformClient(m.cli.Conn())
|
|
client := transform.NewTransformClient(m.cli.Conn())
|
|
|
return client.PostExcelLog(ctx, in)
|
|
return client.PostExcelLog(ctx, in)
|
|
@@ -107,6 +128,12 @@ func (m *defaultTransform) GetErpOptionset(ctx context.Context, in *OptionCode)
|
|
|
return client.GetErpOptionset(ctx, in)
|
|
return client.GetErpOptionset(ctx, in)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 获取数据权限
|
|
|
|
|
+func (m *defaultTransform) GetDataPermission(ctx context.Context, in *DataPermissionReq) (*DataPermissionRes, error) {
|
|
|
|
|
+ client := transform.NewTransformClient(m.cli.Conn())
|
|
|
|
|
+ return client.GetDataPermission(ctx, in)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 获取erp 渠道细分树
|
|
// 获取erp 渠道细分树
|
|
|
func (m *defaultTransform) GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error) {
|
|
func (m *defaultTransform) GetErpMktNetWorkDetailTree(ctx context.Context, in *Empty) (*TreeNodes, error) {
|
|
|
client := transform.NewTransformClient(m.cli.Conn())
|
|
client := transform.NewTransformClient(m.cli.Conn())
|