company.go 673 B

123456789101112131415161718192021
  1. package services
  2. import "eta_gn/eta_bridge/utils"
  3. func GetProductId(roleTypeCode string) (productId int) {
  4. if roleTypeCode == utils.ROLE_TYPE_CODE_FICC_SELLER ||
  5. roleTypeCode == utils.ROLE_TYPE_CODE_FICC_ADMIN ||
  6. roleTypeCode == utils.ROLE_TYPE_CODE_FICC_TEAM ||
  7. roleTypeCode == utils.ROLE_TYPE_CODE_FICC_GROUP ||
  8. roleTypeCode == utils.ROLE_TYPE_CODE_FICC_DEPARTMENT {
  9. productId = 1
  10. } else if roleTypeCode == utils.ROLE_TYPE_CODE_RAI_SELLER ||
  11. roleTypeCode == utils.ROLE_TYPE_CODE_RAI_ADMIN ||
  12. roleTypeCode == utils.ROLE_TYPE_CODE_RAI_GROUP ||
  13. roleTypeCode == utils.ROLE_TYPE_CODE_RAI_DEPARTMENT {
  14. productId = 2
  15. } else {
  16. productId = 0
  17. }
  18. return
  19. }