first commit

This commit is contained in:
2024-10-02 00:57:17 +08:00
commit 6773f86bc5
312 changed files with 19169 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package YYSY
import (
"context"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type YYSY09CDLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSY09CDLogic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSY09CDLogic {
return &YYSY09CDLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSY09CDLogic) YYSY09CD(req *types.Request) (resp *types.Response, err error) {
// todo: add your logic here and delete this line
return
}

View File

@@ -0,0 +1,30 @@
package YYSY
import (
"context"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type YYSY4B37Logic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSY4B37Logic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSY4B37Logic {
return &YYSY4B37Logic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSY4B37Logic) YYSY4B37(req *types.Request) (resp *types.Response, err error) {
// todo: add your logic here and delete this line
return
}

View File

@@ -0,0 +1,30 @@
package YYSY
import (
"context"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type YYSY6F2ELogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSY6F2ELogic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSY6F2ELogic {
return &YYSY6F2ELogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSY6F2ELogic) YYSY6F2E(req *types.Request) (resp *types.Response, err error) {
// todo: add your logic here and delete this line
return
}

View File

@@ -0,0 +1,30 @@
package YYSY
import (
"context"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type YYSYBE08Logic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSYBE08Logic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSYBE08Logic {
return &YYSYBE08Logic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSYBE08Logic) YYSYBE08(req *types.Request) (resp *types.Response, err error) {
// todo: add your logic here and delete this line
return
}

View File

@@ -0,0 +1,30 @@
package YYSY
import (
"context"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type YYSYD50FLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSYD50FLogic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSYD50FLogic {
return &YYSYD50FLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSYD50FLogic) YYSYD50F(req *types.Request) (resp *types.Response, err error) {
// todo: add your logic here and delete this line
return
}

View File

@@ -0,0 +1,87 @@
package YYSY
import (
"context"
"github.com/zeromicro/go-zero/core/logx"
"tianyuan-api/apps/api/internal/svc"
"tianyuan-api/apps/api/internal/types"
)
type YYSYF7DBLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewYYSYF7DBLogic(ctx context.Context, svcCtx *svc.ServiceContext) *YYSYF7DBLogic {
return &YYSYF7DBLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *YYSYF7DBLogic) YYSYF7DB(req *types.Request) (*types.Response, error) {
////userId, ok := l.ctx.Value("userId").(int64)
////if !ok {
//// return &types.Response{}, errors.New("系统错误,请联系管理员")
////}
//secretKey, ok := l.ctx.Value("secretKey").(string)
//if !ok {
// return &types.Response{}, errors.New("系统错误,请联系管理员")
//}
//
//// 1、解密
//key, err := hex.DecodeString(secretKey)
//decryptData, err := crypto.AesDecrypt(req.Data, key)
//if err != nil || len(decryptData) == 0 {
// return nil, errors.New("参数解密失败")
//}
//
//// 2、校验
//var data validator.YYSYf7dbRequest
//
//if validatorErr := validator.ValidateAndParse(decryptData, &data); validatorErr != nil {
// return nil, validatorErr
//}
//
//// 3、西部加密
//westConfig := l.svcCtx.Config.WestConfig
////name, err := crypto.WestDexEncrypt(data., westConfig.Key)
////if err != nil {
//// logx.Errorf("西部加密错误:%v", err)
//// return nil, errors.New("业务异常")
////}
//phone, err := crypto.WestDexEncrypt(data.MobileNo, westConfig.Key)
//if err != nil {
// logx.Errorf("西部加密错误:%v", err)
// return nil, errors.New("业务异常")
//}
//startDate, err := crypto.WestDexEncrypt(data.StartDate, westConfig.Key)
//if err != nil {
// logx.Errorf("西部加密错误:%v", err)
// return nil, errors.New("业务异常")
//}
//// 4、发送请求到西部
//westdexRequest := map[string]interface{}{
// "phone": phone,
// "startDate": startDate,
//}
//westResp, err := l.svcCtx.WestDexService.CallAPI("G19BJ02", westdexRequest)
//if err != nil {
// return nil, err
//}
//
//// 5、响应解析
////var respData westmodel.G09GX01Response
////unmarshalErr := json.Unmarshal(westResp, &respData)
////if unmarshalErr != nil {
//// return nil, unmarshalErr
////}
////crypto.AesEncrypt()
//return &types.Response{
// Data: string(westResp),
//}, nil
return &types.Response{}, nil
}