code.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package entity
  2. import "errors"
  3. //表代码
  4. const (
  5. CODE_MEDICAL_INSTITUTION_LEVEL = "code_level"
  6. CODE_MEDICAL_INSTITUTION_TYPE = "code_type"
  7. DOMAIN_CAPITAL_RETENTION = "capital_retention"
  8. TableDomainEntClaim = "domain_ent_claim" // 认领表
  9. TableCompanyBasInfo = "company_baseinfo" // 企业信息表
  10. TableCodeArea = "code_area" // 区域代码表
  11. TableInstitutionBaseInfo = "institution_baseinfo" // 机构信息表
  12. )
  13. // db
  14. const (
  15. DbMedical = "medical_field_data"
  16. DbGlobal = "global_common_data"
  17. )
  18. //返回状态
  19. const (
  20. ERRORCODE = 1
  21. SUCCESSCODE = 0
  22. )
  23. const (
  24. Date_Full_Layout = "2006-01-02 15:04:05"
  25. )
  26. // 类型
  27. const (
  28. TypeInstitution = 1 // 医疗机构
  29. TypeDistributor = 2 // 经销商
  30. MEDICALDOMAIN = "medical_domain"
  31. )
  32. // 认领状态
  33. const (
  34. StatusClaimed = 1 // 认领
  35. StatusUnClaimed = -1 // 取消认领
  36. )
  37. var (
  38. RepeatErr = errors.New("重复操作")
  39. OperateErr = errors.New("操作失败")
  40. EntNoFoundErr = errors.New("未查询到该企业详细信息")
  41. )
  42. const (
  43. FunctionInstitutionUnclaimed = "机构取消认领"
  44. FunctionDistributorUnclaimed = "经销商取消认领"
  45. FunctionInstitutionClaim = "机构认领"
  46. FunctionDistributorClaim = "经销商认领"
  47. )