user.go 364 B

12345678910111213141516171819202122
  1. package handler
  2. import (
  3. "fmt"
  4. "gas-cylinder-api/common/model"
  5. coreModel "gogs.baozhida.cn/zoie/OAuth-core/model"
  6. )
  7. type SysUser struct {
  8. model.Model
  9. coreModel.User
  10. model.ControlBy
  11. model.ModelTime
  12. }
  13. func (SysUser) TableName() string {
  14. return "sys_user"
  15. }
  16. func GetVerifyCodeCacheKey(phone string) string {
  17. return fmt.Sprintf("verify-code-%s", phone)
  18. }