完成研究实习项目和乡村政府项目业务层
This commit is contained in:
@@ -6,7 +6,8 @@ package socialServiceInternship
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type CreateSocialServiceInternshipLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceInternshipModel
|
||||
}
|
||||
|
||||
func NewCreateSocialServiceInternshipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSocialServiceInternshipLogic {
|
||||
func NewCreateSocialServiceInternshipLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceInternshipModel) *CreateSocialServiceInternshipLogic {
|
||||
return &CreateSocialServiceInternshipLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceInternship
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type DeleteSocialServiceInternshipLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceInternshipModel
|
||||
}
|
||||
|
||||
func NewDeleteSocialServiceInternshipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSocialServiceInternshipLogic {
|
||||
func NewDeleteSocialServiceInternshipLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceInternshipModel) *DeleteSocialServiceInternshipLogic {
|
||||
return &DeleteSocialServiceInternshipLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceInternship
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type GetSocialServiceInternshipLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceInternshipModel
|
||||
}
|
||||
|
||||
func NewGetSocialServiceInternshipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSocialServiceInternshipLogic {
|
||||
func NewGetSocialServiceInternshipLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceInternshipModel) *GetSocialServiceInternshipLogic {
|
||||
return &GetSocialServiceInternshipLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceInternship
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type ListSocialServiceInternshipLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceInternshipModel
|
||||
}
|
||||
|
||||
func NewListSocialServiceInternshipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSocialServiceInternshipLogic {
|
||||
func NewListSocialServiceInternshipLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceInternshipModel) *ListSocialServiceInternshipLogic {
|
||||
return &ListSocialServiceInternshipLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceInternship
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_internship/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type UpdateSocialServiceInternshipLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceInternshipModel
|
||||
}
|
||||
|
||||
func NewUpdateSocialServiceInternshipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSocialServiceInternshipLogic {
|
||||
func NewUpdateSocialServiceInternshipLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceInternshipModel) *UpdateSocialServiceInternshipLogic {
|
||||
return &UpdateSocialServiceInternshipLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user