Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapServer(args []string)
- func CountNotification(rail miso.Rail, db *gorm.DB, user common.User) (int, error)
- func CountNotificationEp(inb *miso.Inbound) (any, error)
- func CreateNotification(rail miso.Rail, db *gorm.DB, req api.CreateNotificationReq, user common.User) error
- func CreateNotificationEp(inb *miso.Inbound, req api.CreateNotificationReq) (any, error)
- func NotifiNo() string
- func OpenAllNotification(rail miso.Rail, db *gorm.DB, user common.User) error
- func OpenAllNotificationEp(inb *miso.Inbound) (any, error)
- func OpenNotification(rail miso.Rail, db *gorm.DB, req OpenNotificationReq, user common.User) error
- func OpenNotificationEp(inb *miso.Inbound, req OpenNotificationReq) (any, error)
- func QueryNotification(rail miso.Rail, db *gorm.DB, req QueryNotificationReq, user common.User) (miso.PageRes[ListedNotification], error)
- func QueryNotificationEp(inb *miso.Inbound, req QueryNotificationReq) (any, error)
- func RegisterRoutes(rail miso.Rail) error
- func SaveNotification(rail miso.Rail, db *gorm.DB, req SaveNotifiReq, user common.User) error
- type ListedNotification
- type OpenNotificationReq
- type QueryNotificationReq
- type SaveNotifiReq
Constants ¶
View Source
const ( StatusInit = "INIT" StatusOpened = "OPENED" )
View Source
const ( ResourceQueryNotification = "postbox:notification:query" ResourceCreateNotification = "postbox:notification:create" )
Variables ¶
View Source
var (
ErrUserNotFound = miso.NewErrf("User not found").WithCode(api.CodeUserNotFound)
)
View Source
var (
PostboxPool *miso.AsyncPool
)
Functions ¶
func BootstrapServer ¶
func BootstrapServer(args []string)
func CountNotification ¶
func CreateNotification ¶
func CreateNotificationEp ¶
func OpenAllNotification ¶ added in v0.0.4
func OpenAllNotificationEp ¶ added in v0.0.4
func OpenNotification ¶
func OpenNotificationEp ¶
func OpenNotificationEp(inb *miso.Inbound, req OpenNotificationReq) (any, error)
func QueryNotification ¶
func QueryNotificationEp ¶
func QueryNotificationEp(inb *miso.Inbound, req QueryNotificationReq) (any, error)
func RegisterRoutes ¶
func SaveNotification ¶
Types ¶
type ListedNotification ¶
type OpenNotificationReq ¶
type OpenNotificationReq struct {
NotifiNo string `valid:"notEmpty"`
}
type QueryNotificationReq ¶
type SaveNotifiReq ¶
Click to show internal directories.
Click to hide internal directories.