finclip-app-manager/domain/service/account.go

40 lines
1.1 KiB
Go

package service
import (
"finclip-app-manager/infrastructure/client/httpcall"
"finclip-app-manager/infrastructure/config"
"finclip-app-manager/infrastructure/utility"
"net/http"
)
type AccountInfoService struct {
}
func NewAccountInfoService() *AccountInfoService {
return &AccountInfoService{}
}
func (a *AccountInfoService) UpInfo(organId, subId, t string, m map[string]interface{}) (int, string) {
return http.StatusOK, utility.OK
}
func (a *AccountInfoService) getAccountStatus(groupIDData *httpcall.GroupIDData /*, developerData *client.DeveloperData*/) int {
//if developerData.Type == client.ORGAN_ACCOUNT_TYPE_PERSON {
// return developerData.Status
//}
//if developerData.Type == client.ORGAN_ACCOUNT_TYPE_BUSINESS {
log.Infof("getAccountStatus-----groupIDData.ReviewStatus: %d\n", groupIDData.ReviewStatus)
if config.Cfg.IsUatEnv() {
if groupIDData.ReviewStatus == httpcall.StOrganApproved {
return httpcall.ORGAN_STATUS_NORMAL
}
if groupIDData.ReviewStatus == httpcall.StOrganUnApproved {
return httpcall.ORGAN_STATUS_FREEZE
}
}
//}
// 私有化环境固定返回1
return httpcall.ORGAN_STATUS_NORMAL
}