| | |
| | | return $fytz |
| | | .post(`notifications/history?${params}`, { |
| | | ecNoticetype: type, |
| | | ecNoticesubtype: subtype, |
| | | ecNoticesubtype: subtype |
| | | }) |
| | | .then((res) => res.data); |
| | | }, |
| | |
| | | params: { |
| | | userId: id, |
| | | page: 1, |
| | | per_page: 30, |
| | | }, |
| | | per_page: 30 |
| | | } |
| | | }) |
| | | .then((res) => res.data); |
| | | }, |
| | |
| | | releaseNotice(notice) { |
| | | notice.authorId = id; |
| | | notice.authorName = name; |
| | | return $fytz |
| | | .post(`notifications/${id}/release2`, notice) |
| | | .then((res) => res.data); |
| | | }, |
| | | return $fytz.post(`notifications/${id}/release2`, notice).then((res) => res.data); |
| | | } |
| | | }; |