golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 vuotta sitten
123456789101112131415
  1. package service
  2. import (
  3. "context"
  4. "gim/internal/logic/domain/message/repo"
  5. )
  6. type seqService struct{}
  7. var SeqService = new(seqService)
  8. // GetUserNext 获取下一个序列号
  9. func (*seqService) GetUserNext(ctx context.Context, userId int64) (int64, error) {
  10. return repo.SeqRepo.Incr(repo.SeqObjectTypeUser, userId)
  11. }