Documentation ¶
Index ¶
- type CommentService
- type DocumentService
- func (s *DocumentService) CountDocByUser(ctx context.Context, userData models.Shortuser) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) GetActivityDoc(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) GetDocumentUser(ctx context.Context, filter models.DocumentUserFilter, page helpers.PageReq) (res *helpers.Paginate, err error)
- func (s *DocumentService) GetSingleDocByUser(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) SaveDraft(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUser) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) SaveDraftMultiple(ctx context.Context, userData models.Shortuser, ...) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) SendSign(ctx context.Context, userData models.Shortuser, ...) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) SendSignMultiple(ctx context.Context, userData models.Shortuser, ...) (res *helpers.JSONResponse, err error)
- func (s *DocumentService) UpdateDocumentAttributte(ctx context.Context, filter models.UpdateDocReq, userData models.Shortuser) (res *helpers.JSONResponse, err error)
- type EsignService
- type ICommentService
- type IDocumentService
- type IEsignService
- type IPlayerService
- type IUploadService
- type IUserService
- type PlayerService
- type UploadService
- type UserService
- func (p *UserService) FindUserByIDDPR(IDDPR int) (user models.User, err error)
- func (p *UserService) GetAll(ctx context.Context) (Response *helpers.JSONResponse, err error)
- func (p *UserService) Login(l models.Login) (token models.TokenResp, err error)
- func (p *UserService) LoginMehong(ctx context.Context, c models.EncryptedCookies) (Response *helpers.JSONResponse, err error)
- func (p *UserService) Profile(ctx context.Context, NIP string) (Response *helpers.JSONResponse, err error)
- func (p *UserService) StoreUser(data models.User) (err error)
- func (p *UserService) UpdateFile(ctx context.Context, file multipart.File, oldName string, IDUser int, ...) (Response *helpers.JSONResponse, err error)
- func (p *UserService) UpdateUser(IDuser int, data models.User) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentService ¶
type CommentService struct { CommentRepository repositories.ICommentRepository DocumentsRepository repositories.IDocumentsRepository DB infrastructures.ISQLConnection }
CommentService is
func (*CommentService) GetCommentByDocID ¶
func (s *CommentService) GetCommentByDocID(ctx context.Context, docID int) (res *helpers.JSONResponse, err error)
GetCommentByDocID is
func (*CommentService) StoreComment ¶
func (s *CommentService) StoreComment(ctx context.Context, userID int, dataComments models.Comment) (res *helpers.JSONResponse, err error)
StoreComment to store comment from user post
type DocumentService ¶
type DocumentService struct { DocumentRepository repositories.IDocumentsRepository DocumentUserRepository repositories.IDocumentUserRepository DocumentActivityRepository repositories.IDocumentActivityRepository CommentRepository repositories.ICommentRepository DB infrastructures.ISQLConnection }
DocumentService is
func (*DocumentService) CountDocByUser ¶
func (s *DocumentService) CountDocByUser(ctx context.Context, userData models.Shortuser) (res *helpers.JSONResponse, err error)
CountDocByUser update document only attribute
func (*DocumentService) GetActivityDoc ¶
func (s *DocumentService) GetActivityDoc(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error)
GetActivityDoc get single document
func (*DocumentService) GetDocumentUser ¶
func (s *DocumentService) GetDocumentUser(ctx context.Context, filter models.DocumentUserFilter, page helpers.PageReq) (res *helpers.Paginate, err error)
GetDocumentUser is
func (*DocumentService) GetSingleDocByUser ¶
func (s *DocumentService) GetSingleDocByUser(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error)
GetSingleDocByUser get single document
func (*DocumentService) SaveDraft ¶
func (s *DocumentService) SaveDraft(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUser) (res *helpers.JSONResponse, err error)
SaveDraft save draft single document
func (*DocumentService) SaveDraftMultiple ¶
func (s *DocumentService) SaveDraftMultiple(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserMultiple) (res *helpers.JSONResponse, err error)
SaveDraftMultiple save draft single document
func (*DocumentService) SendSign ¶
func (s *DocumentService) SendSign(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserSendSigning, userTarget int) (res *helpers.JSONResponse, err error)
SendSign save draft single document
func (*DocumentService) SendSignMultiple ¶
func (s *DocumentService) SendSignMultiple(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserSendSigningMultiple) (res *helpers.JSONResponse, err error)
SendSignMultiple send sign multiple document
func (*DocumentService) UpdateDocumentAttributte ¶
func (s *DocumentService) UpdateDocumentAttributte(ctx context.Context, filter models.UpdateDocReq, userData models.Shortuser) (res *helpers.JSONResponse, err error)
UpdateDocumentAttributte update document only attribute
type EsignService ¶
type EsignService struct { DocumentRepository repositories.IDocumentsRepository DocumentUserRepository repositories.IDocumentUserRepository DocumentActivityRepository repositories.IDocumentActivityRepository EsignRepository repositories.IEsignRepository DB infrastructures.ISQLConnection }
EsignService is
func (*EsignService) PostSign ¶
func (s *EsignService) PostSign(ctx context.Context, dataSign models.EsignReq, dataUser models.Shortuser) (response *helpers.JSONResponse, err error)
PostSign is
func (*EsignService) PostSignMultiple ¶
func (s *EsignService) PostSignMultiple(ctx context.Context, dataSign models.EsignMutipleReq, dataUser models.Shortuser) (response *helpers.JSONResponse, err error)
PostSignMultiple is
type ICommentService ¶
type ICommentService interface { GetCommentByDocID(ctx context.Context, docID int) (res *helpers.JSONResponse, err error) StoreComment(ctx context.Context, userID int, dataComments models.Comment) (res *helpers.JSONResponse, err error) }
ICommentService is
type IDocumentService ¶
type IDocumentService interface { GetDocumentUser(ctx context.Context, filter models.DocumentUserFilter, page helpers.PageReq) (res *helpers.Paginate, err error) UpdateDocumentAttributte(ctx context.Context, filter models.UpdateDocReq, userData models.Shortuser) (res *helpers.JSONResponse, err error) GetSingleDocByUser(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error) GetActivityDoc(ctx context.Context, docID int, userData models.Shortuser) (res *helpers.JSONResponse, err error) SaveDraft(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUser) (res *helpers.JSONResponse, err error) SendSign(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserSendSigning, userTarget int) (res *helpers.JSONResponse, err error) SaveDraftMultiple(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserMultiple) (res *helpers.JSONResponse, err error) CountDocByUser(ctx context.Context, userData models.Shortuser) (res *helpers.JSONResponse, err error) SendSignMultiple(ctx context.Context, userData models.Shortuser, dataReq models.DocumentUserSendSigningMultiple) (res *helpers.JSONResponse, err error) }
IDocumentService is
type IEsignService ¶
type IEsignService interface { PostSign(ctx context.Context, dataSign models.EsignReq, dataUser models.Shortuser) (Response *helpers.JSONResponse, err error) PostSignMultiple(ctx context.Context, dataSign models.EsignMutipleReq, dataUser models.Shortuser) (response *helpers.JSONResponse, err error) }
IEsignService is
type IPlayerService ¶
IPlayerService is
type IUploadService ¶
type IUploadService interface {
StoreFile(ctx context.Context, file multipart.File, oldName string, IDUser int) (Response *helpers.JSONResponse, err error)
}
IUploadService is
type IUserService ¶
type IUserService interface { StoreUser(models.User) error UpdateUser(IDuser int, data models.User) (err error) FindUserByIDDPR(IDDPR int) (user models.User, err error) Login(l models.Login) (result models.TokenResp, err error) Profile(ctx context.Context, NIP string) (Response *helpers.JSONResponse, err error) UpdateFile(ctx context.Context, file multipart.File, oldName string, IDUser int, fileTypeReq string) (Response *helpers.JSONResponse, err error) GetAll(ctx context.Context) (Response *helpers.JSONResponse, err error) LoginMehong(ctx context.Context, c models.EncryptedCookies) (Response *helpers.JSONResponse, err error) }
IUserService is
type PlayerService ¶
type PlayerService struct {
PlayerRepository repositories.IPlayerRepository
}
PlayerService is
func (*PlayerService) StorePlayer ¶
StorePlayer is
type UploadService ¶
type UploadService struct { DocumentRepository repositories.IDocumentsRepository DocumentUserRepository repositories.IDocumentUserRepository DB infrastructures.ISQLConnection }
UploadService is
type UserService ¶
type UserService struct { UserRepository repositories.IUserRepository SniperRepository repositories.ISniperRepository Redis infrastructures.IRedis }
UserService is
func (*UserService) FindUserByIDDPR ¶
func (p *UserService) FindUserByIDDPR(IDDPR int) (user models.User, err error)
FindUserByIDDPR is
func (*UserService) GetAll ¶
func (p *UserService) GetAll(ctx context.Context) (Response *helpers.JSONResponse, err error)
GetAll getg all user
func (*UserService) LoginMehong ¶
func (p *UserService) LoginMehong(ctx context.Context, c models.EncryptedCookies) (Response *helpers.JSONResponse, err error)
LoginMehong login usinh sniper
func (*UserService) Profile ¶
func (p *UserService) Profile(ctx context.Context, NIP string) (Response *helpers.JSONResponse, err error)
Profile is
func (*UserService) StoreUser ¶
func (p *UserService) StoreUser(data models.User) (err error)
StoreUser is
func (*UserService) UpdateFile ¶
func (p *UserService) UpdateFile(ctx context.Context, file multipart.File, oldName string, IDUser int, fileTypeReq string) (Response *helpers.JSONResponse, err error)
UpdateFile is
func (*UserService) UpdateUser ¶
func (p *UserService) UpdateUser(IDuser int, data models.User) (err error)
UpdateUser is