realname_old.go 568 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/admin/main/member/model"
  5. "github.com/pkg/errors"
  6. )
  7. // AddOldRealnameIMG is
  8. func (d *Dao) AddOldRealnameIMG(ctx context.Context, img *model.DeDeIdentificationCardApplyImg) error {
  9. if err := d.account.Create(img).Error; err != nil {
  10. return errors.WithStack(err)
  11. }
  12. return nil
  13. }
  14. // AddOldRealnameApply is
  15. func (d *Dao) AddOldRealnameApply(ctx context.Context, apply *model.DeDeIdentificationCardApply) error {
  16. if err := d.account.Create(apply).Error; err != nil {
  17. return errors.WithStack(err)
  18. }
  19. return nil
  20. }