sqlc: add stub read all message method

r/paopao-ce-pro
Michael Li 1 year ago
parent 731a9cbe4f
commit 067bd9104a
No known key found for this signature in database

@ -40,8 +40,12 @@ func (s *messageSrv) GetMessageByID(id int64) (*ms.Message, error) {
func (s *messageSrv) ReadMessage(message *ms.Message) error { func (s *messageSrv) ReadMessage(message *ms.Message) error {
// TODO // TODO
debug.NotImplemented() return cs.ErrNotImplemented
return nil }
func (s *messageSrv) ReadAllMessage(userId int64) error {
// TODO
return cs.ErrNotImplemented
} }
func (s *messageSrv) GetMessages(userId int64, style cs.MessageStyle, limit, offset int) ([]*ms.MessageFormated, int64, error) { func (s *messageSrv) GetMessages(userId int64, style cs.MessageStyle, limit, offset int) ([]*ms.MessageFormated, int64, error) {

Loading…
Cancel
Save