123456789101112131415161718192021222324252627282930 |
- package logic
- import (
- "context"
- "apklink/service/internal/svc"
- "apklink/service/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type ServiceLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) ServiceLogic {
- return ServiceLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *ServiceLogic) Service(req types.Request) (resp *types.Response, err error) {
- return &types.Response{
- Message: "Hello go-zero",
- }, nil
- }
|