完成社会服务业务层代码
This commit is contained in:
@@ -6,7 +6,8 @@ package socialService
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type CreateSocialServiceLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceModel
|
||||
}
|
||||
|
||||
func NewCreateSocialServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSocialServiceLogic {
|
||||
func NewCreateSocialServiceLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceModel) *CreateSocialServiceLogic {
|
||||
return &CreateSocialServiceLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialService
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type DeleteSocialServiceLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceModel
|
||||
}
|
||||
|
||||
func NewDeleteSocialServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSocialServiceLogic {
|
||||
func NewDeleteSocialServiceLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceModel) *DeleteSocialServiceLogic {
|
||||
return &DeleteSocialServiceLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialService
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type GetSocialServiceLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceModel
|
||||
}
|
||||
|
||||
func NewGetSocialServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSocialServiceLogic {
|
||||
func NewGetSocialServiceLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceModel) *GetSocialServiceLogic {
|
||||
return &GetSocialServiceLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialService
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type ListSocialServiceLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceModel
|
||||
}
|
||||
|
||||
func NewListSocialServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSocialServiceLogic {
|
||||
func NewListSocialServiceLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceModel) *ListSocialServiceLogic {
|
||||
return &ListSocialServiceLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialService
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,20 +15,21 @@ import (
|
||||
|
||||
type UpdateSocialServiceLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceModel
|
||||
}
|
||||
|
||||
func NewUpdateSocialServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSocialServiceLogic {
|
||||
func NewUpdateSocialServiceLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceModel) *UpdateSocialServiceLogic {
|
||||
return &UpdateSocialServiceLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *UpdateSocialServiceLogic) UpdateSocialService(req *types.UpdateSocialServiceReq) (resp *types.UpdateSocialServiceResp, err error) {
|
||||
// todo: add your logic here and delete this line
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user