golang-im聊天
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

im_package_repo.go 346 B

2 년 전
123456789101112131415161718
  1. package repo
  2. import (
  3. "gim/internal/business/domain/user/model"
  4. )
  5. type imPackageRepo struct{}
  6. var ImPackageRepo = new(imPackageRepo)
  7. // Get 获取单个套餐包
  8. func (*imPackageRepo) Get(masterId int64) (*model.ImPackage, error) {
  9. imPackage, err := ImPackageDao.Get(masterId)
  10. if err != nil {
  11. return nil, err
  12. }
  13. return imPackage, err
  14. }