2023-12-25 17:08:19 +00:00
|
|
|
package adminkindboxreqservice
|
2023-12-20 08:27:13 +00:00
|
|
|
|
2024-01-16 16:13:06 +00:00
|
|
|
// func (s Service) Add(ctx context.Context, req param.KindBoxReqAddRequest) (param.KindBoxReqAddResponse, error) {
|
|
|
|
// const op = "adminkindboxreqservice.Add"
|
|
|
|
//
|
|
|
|
// kindBoxReq, err := s.repo.AddKindBoxReq(ctx, entity.KindBoxReq{
|
|
|
|
// BenefactorID: req.BenefactorID,
|
|
|
|
// KindBoxType: req.TypeID,
|
|
|
|
// CountRequested: req.CountRequested,
|
|
|
|
// Status: entity.KindBoxReqPendingStatus,
|
|
|
|
// })
|
|
|
|
// if err != nil {
|
|
|
|
// return param.KindBoxReqAddResponse{}, richerror.New(op).WithErr(err).WithKind(richerror.KindUnexpected)
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// return param.KindBoxReqAddResponse{KindBoxReq: kindBoxReq}, nil
|
|
|
|
//}
|