service

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type SystemService

type SystemService interface {
	RetrieveNotice(ctx context.Context, req *system.RetrieveNoticeReq) (resp *system.RetrieveNoticeResp, err error)
	ListNotice(ctx context.Context, req *system.ListNoticeReq) (resp *system.ListNoticeResp, err error)
	CreateNotice(ctx context.Context, req *system.CreateNoticeReq) (resp *system.CreateNoticeResp, err error)
	UpdateNotice(ctx context.Context, req *system.UpdateNoticeReq) (resp *system.UpdateNoticeResp, err error)
	DeleteNotice(ctx context.Context, req *system.DeleteNoticeReq) (resp *system.DeleteNoticeResp, err error)
	RetrieveNews(ctx context.Context, req *system.RetrieveNewsReq) (resp *system.RetrieveNewsResp, err error)
	ListNews(ctx context.Context, req *system.ListNewsReq) (resp *system.ListNewsResp, err error)
	CreateNews(ctx context.Context, req *system.CreateNewsReq) (resp *system.CreateNewsResp, err error)
	UpdateNews(ctx context.Context, req *system.UpdateNewsReq) (resp *system.UpdateNewsResp, err error)
	DeleteNews(ctx context.Context, req *system.DeleteNewsReq) (resp *system.DeleteNewsResp, err error)
	RetrieveAdmin(ctx context.Context, req *system.RetrieveAdminReq) (resp *system.RetrieveAdminResp, err error)
	ListAdmin(ctx context.Context, req *system.ListAdminReq) (resp *system.ListAdminResp, err error)
	CreateAdmin(ctx context.Context, req *system.CreateAdminReq) (resp *system.CreateAdminResp, err error)
	UpdateAdmin(ctx context.Context, req *system.UpdateAdminReq) (resp *system.UpdateAdminResp, err error)
	DeleteAdmin(ctx context.Context, req *system.DeleteAdminReq) (resp *system.DeleteAdminResp, err error)
	RetrieveUserRole(ctx context.Context, req *system.RetrieveUserRoleReq) (resp *system.RetrieveUserRoleResp, err error)
	ListUserIdByRole(ctx context.Context, req *system.ListUserIdByRoleReq) (resp *system.ListUserIdByRoleResp, err error)
	UpdateUserRole(ctx context.Context, req *system.UpdateUserRoleReq) (resp *system.UpdateUserRoleResp, err error)
	ContainsRole(ctx context.Context, req *system.ContainsRoleReq) (resp *system.ContainsRoleResp, err error)
	CreateApply(ctx context.Context, req *system.CreateApplyReq) (resp *system.CreateApplyResp, err error)
	HandleApply(ctx context.Context, req *system.HandleApplyReq) (resp *system.HandleApplyResp, err error)
	ListApply(ctx context.Context, req *system.ListApplyReq) (resp *system.ListApplyResp, err error)
	RetrieveCommunity(ctx context.Context, req *system.RetrieveCommunityReq) (resp *system.RetrieveCommunityResp, err error)
	ListCommunity(ctx context.Context, req *system.ListCommunityReq) (resp *system.ListCommunityResp, err error)
	CreateCommunity(ctx context.Context, req *system.CreateCommunityReq) (resp *system.CreateCommunityResp, err error)
	UpdateCommunity(ctx context.Context, req *system.UpdateCommunityReq) (resp *system.UpdateCommunityResp, err error)
	DeleteCommunity(ctx context.Context, req *system.DeleteCommunityReq) (resp *system.DeleteCommunityResp, err error)
	ListNotification(ctx context.Context, req *system.ListNotificationReq) (resp *system.ListNotificationResp, err error)
	CountNotification(ctx context.Context, req *system.CountNotificationReq) (resp *system.CountNotificationResp, err error)
	CleanNotification(ctx context.Context, req *system.CleanNotificationReq) (resp *system.CleanNotificationResp, err error)
	ReadNotification(ctx context.Context, req *system.ReadNotificationReq) (resp *system.ReadNotificationResp, err error)
	AddNotification(ctx context.Context, req *system.AddNotificationReq) (resp *system.AddNotificationResp, err error)
}

type SystemServiceImpl

type SystemServiceImpl struct {
	AdminModel        mapper.AdminModel
	ApplyModel        mapper.ApplyModel
	CommunityModel    mapper.CommunityModel
	NewsModel         mapper.NewsModel
	NoticeModel       mapper.NoticeModel
	UserRoleModel     mapper.UserRoleModel
	NotificationModel mapper.NotificationModel
}

func (*SystemServiceImpl) AddNotification added in v1.0.9

func (s *SystemServiceImpl) AddNotification(ctx context.Context, req *system.AddNotificationReq) (resp *system.AddNotificationResp, err error)

func (*SystemServiceImpl) CheckCommunityIdExist

func (s *SystemServiceImpl) CheckCommunityIdExist(ctx context.Context, id string) (primitive.ObjectID, error)

func (*SystemServiceImpl) CheckParentCommunityId

func (s *SystemServiceImpl) CheckParentCommunityId(ctx context.Context, parentId string) (primitive.ObjectID, error)

func (*SystemServiceImpl) CleanNotification added in v1.0.7

func (s *SystemServiceImpl) CleanNotification(ctx context.Context, req *system.CleanNotificationReq) (resp *system.CleanNotificationResp, err error)

func (*SystemServiceImpl) ContainsRole

func (s *SystemServiceImpl) ContainsRole(ctx context.Context, req *system.ContainsRoleReq) (resp *system.ContainsRoleResp, err error)

func (*SystemServiceImpl) CountNotification added in v1.0.7

func (s *SystemServiceImpl) CountNotification(ctx context.Context, req *system.CountNotificationReq) (resp *system.CountNotificationResp, err error)

func (*SystemServiceImpl) CreateAdmin

func (s *SystemServiceImpl) CreateAdmin(ctx context.Context, req *system.CreateAdminReq) (resp *system.CreateAdminResp, err error)

func (*SystemServiceImpl) CreateApply

func (s *SystemServiceImpl) CreateApply(ctx context.Context, req *system.CreateApplyReq) (resp *system.CreateApplyResp, err error)

func (*SystemServiceImpl) CreateCommunity

func (s *SystemServiceImpl) CreateCommunity(ctx context.Context, req *system.CreateCommunityReq) (resp *system.CreateCommunityResp, err error)

func (*SystemServiceImpl) CreateNews

func (s *SystemServiceImpl) CreateNews(ctx context.Context, req *system.CreateNewsReq) (resp *system.CreateNewsResp, err error)

func (*SystemServiceImpl) CreateNotice

func (s *SystemServiceImpl) CreateNotice(ctx context.Context, req *system.CreateNoticeReq) (resp *system.CreateNoticeResp, err error)

func (*SystemServiceImpl) DeleteAdmin

func (s *SystemServiceImpl) DeleteAdmin(ctx context.Context, req *system.DeleteAdminReq) (resp *system.DeleteAdminResp, err error)

func (*SystemServiceImpl) DeleteCommunity

func (s *SystemServiceImpl) DeleteCommunity(ctx context.Context, req *system.DeleteCommunityReq) (resp *system.DeleteCommunityResp, err error)

func (*SystemServiceImpl) DeleteNews

func (s *SystemServiceImpl) DeleteNews(ctx context.Context, req *system.DeleteNewsReq) (resp *system.DeleteNewsResp, err error)

func (*SystemServiceImpl) DeleteNotice

func (s *SystemServiceImpl) DeleteNotice(ctx context.Context, req *system.DeleteNoticeReq) (resp *system.DeleteNoticeResp, err error)

func (*SystemServiceImpl) HandleApply

func (s *SystemServiceImpl) HandleApply(ctx context.Context, req *system.HandleApplyReq) (resp *system.HandleApplyResp, err error)

func (*SystemServiceImpl) ListAdmin

func (s *SystemServiceImpl) ListAdmin(ctx context.Context, req *system.ListAdminReq) (resp *system.ListAdminResp, err error)

func (*SystemServiceImpl) ListApply

func (s *SystemServiceImpl) ListApply(ctx context.Context, req *system.ListApplyReq) (resp *system.ListApplyResp, err error)

func (*SystemServiceImpl) ListCommunity

func (s *SystemServiceImpl) ListCommunity(ctx context.Context, req *system.ListCommunityReq) (resp *system.ListCommunityResp, err error)

func (*SystemServiceImpl) ListNews

func (s *SystemServiceImpl) ListNews(ctx context.Context, req *system.ListNewsReq) (resp *system.ListNewsResp, err error)

func (*SystemServiceImpl) ListNotice

func (s *SystemServiceImpl) ListNotice(ctx context.Context, req *system.ListNoticeReq) (resp *system.ListNoticeResp, err error)

func (*SystemServiceImpl) ListNotification added in v1.0.7

func (s *SystemServiceImpl) ListNotification(ctx context.Context, req *system.ListNotificationReq) (resp *system.ListNotificationResp, err error)

func (*SystemServiceImpl) ListUserIdByRole

func (s *SystemServiceImpl) ListUserIdByRole(ctx context.Context, req *system.ListUserIdByRoleReq) (resp *system.ListUserIdByRoleResp, err error)

func (*SystemServiceImpl) ReadNotification added in v1.0.7

func (s *SystemServiceImpl) ReadNotification(ctx context.Context, req *system.ReadNotificationReq) (resp *system.ReadNotificationResp, err error)

func (*SystemServiceImpl) RetrieveAdmin

func (s *SystemServiceImpl) RetrieveAdmin(ctx context.Context, req *system.RetrieveAdminReq) (resp *system.RetrieveAdminResp, err error)

func (*SystemServiceImpl) RetrieveCommunity

func (s *SystemServiceImpl) RetrieveCommunity(ctx context.Context, req *system.RetrieveCommunityReq) (resp *system.RetrieveCommunityResp, err error)

func (*SystemServiceImpl) RetrieveNews

func (s *SystemServiceImpl) RetrieveNews(ctx context.Context, req *system.RetrieveNewsReq) (resp *system.RetrieveNewsResp, err error)

func (*SystemServiceImpl) RetrieveNotice

func (s *SystemServiceImpl) RetrieveNotice(ctx context.Context, req *system.RetrieveNoticeReq) (resp *system.RetrieveNoticeResp, err error)

func (*SystemServiceImpl) RetrieveUserRole

func (s *SystemServiceImpl) RetrieveUserRole(ctx context.Context, req *system.RetrieveUserRoleReq) (resp *system.RetrieveUserRoleResp, err error)

func (*SystemServiceImpl) UpdateAdmin

func (s *SystemServiceImpl) UpdateAdmin(ctx context.Context, req *system.UpdateAdminReq) (resp *system.UpdateAdminResp, err error)

func (*SystemServiceImpl) UpdateCommunity

func (s *SystemServiceImpl) UpdateCommunity(ctx context.Context, req *system.UpdateCommunityReq) (resp *system.UpdateCommunityResp, err error)

func (*SystemServiceImpl) UpdateNews

func (s *SystemServiceImpl) UpdateNews(ctx context.Context, req *system.UpdateNewsReq) (resp *system.UpdateNewsResp, err error)

func (*SystemServiceImpl) UpdateNotice

func (s *SystemServiceImpl) UpdateNotice(ctx context.Context, req *system.UpdateNoticeReq) (resp *system.UpdateNoticeResp, err error)

func (*SystemServiceImpl) UpdateUserRole

func (s *SystemServiceImpl) UpdateUserRole(ctx context.Context, req *system.UpdateUserRoleReq) (resp *system.UpdateUserRoleResp, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL