完成研究实习项目和乡村政府项目业务层
This commit is contained in:
@@ -6,6 +6,7 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/logic/socialServiceGovernmentProgram"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
"github.com/zeromicro/go-zero/rest/httpx"
|
||||
|
||||
@@ -6,6 +6,8 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
|
||||
@@ -14,15 +16,17 @@ import (
|
||||
|
||||
type CreateSocialServiceGovernmentProgramLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceGovernmentprogramModel
|
||||
}
|
||||
|
||||
func NewCreateSocialServiceGovernmentProgramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateSocialServiceGovernmentProgramLogic {
|
||||
func NewCreateSocialServiceGovernmentProgramLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceGovernmentprogramModel) *CreateSocialServiceGovernmentProgramLogic {
|
||||
return &CreateSocialServiceGovernmentProgramLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type DeleteSocialServiceGovernmentProgramLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceGovernmentprogramModel
|
||||
}
|
||||
|
||||
func NewDeleteSocialServiceGovernmentProgramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteSocialServiceGovernmentProgramLogic {
|
||||
func NewDeleteSocialServiceGovernmentProgramLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceGovernmentprogramModel) *DeleteSocialServiceGovernmentProgramLogic {
|
||||
return &DeleteSocialServiceGovernmentProgramLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/model"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +16,17 @@ import (
|
||||
|
||||
type GetSocialServiceGovernmentProgramLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceGovernmentprogramModel
|
||||
}
|
||||
|
||||
func NewGetSocialServiceGovernmentProgramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSocialServiceGovernmentProgramLogic {
|
||||
func NewGetSocialServiceGovernmentProgramLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceGovernmentprogramModel) *GetSocialServiceGovernmentProgramLogic {
|
||||
return &GetSocialServiceGovernmentProgramLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type ListSocialServiceGovernmentProgramLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceGovernmentprogramModel
|
||||
}
|
||||
|
||||
func NewListSocialServiceGovernmentProgramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListSocialServiceGovernmentProgramLogic {
|
||||
func NewListSocialServiceGovernmentProgramLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceGovernmentprogramModel) *ListSocialServiceGovernmentProgramLogic {
|
||||
return &ListSocialServiceGovernmentProgramLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
cfg: cfg,
|
||||
model: model,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ package socialServiceGovernmentProgram
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/svc"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/config"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/model"
|
||||
"github.com/JACKYMYPERSON/hldrCenter/internal/social_service_governmentprogram/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -14,15 +15,17 @@ import (
|
||||
|
||||
type UpdateSocialServiceGovernmentProgramLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
ctx context.Context
|
||||
cfg *config.Config
|
||||
model model.SocialServiceGovernmentprogramModel
|
||||
}
|
||||
|
||||
func NewUpdateSocialServiceGovernmentProgramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateSocialServiceGovernmentProgramLogic {
|
||||
func NewUpdateSocialServiceGovernmentProgramLogic(ctx context.Context, cfg *config.Config, model model.SocialServiceGovernmentprogramModel) *UpdateSocialServiceGovernmentProgramLogic {
|
||||
return &UpdateSocialServiceGovernmentProgramLogic{
|
||||
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 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