by Robin at 20240417
This commit is contained in:
parent
50ef95271c
commit
13fb262b82
|
@ -242,7 +242,7 @@ func Init(r *gin.Engine) {
|
||||||
|
|
||||||
// 空间代运营表
|
// 空间代运营表
|
||||||
apiZoneThirdPartnerGroup := r.Group("/api/zone_third_partner", PrepareToC())
|
apiZoneThirdPartnerGroup := r.Group("/api/zone_third_partner", PrepareToC())
|
||||||
apiZoneThirdPartnerGroup.POST("create", middleware.JSONParamValidator(zone_third_partner_proto.ApiCreateReq{}), middleware.JwtAuthenticator(), ApiCreateZoneThirdPartner)
|
apiZoneThirdPartnerGroup.POST("create", middleware.JSONParamValidator(zone_third_partner_proto.ApiCreateReq{}), middleware.JwtAuthenticator(), middleware.RequestDecryptor(), ApiCreateZoneThirdPartner)
|
||||||
//apiZoneThirdPartnerGroup.POST("update", middleware.JSONParamValidator(zone_third_partner_proto.ApiUpdateReq{}), middleware.JwtAuthenticator(), ApiUpdateZoneThirdPartner)
|
//apiZoneThirdPartnerGroup.POST("update", middleware.JSONParamValidator(zone_third_partner_proto.ApiUpdateReq{}), middleware.JwtAuthenticator(), ApiUpdateZoneThirdPartner)
|
||||||
//apiZoneThirdPartnerGroup.POST("delete", middleware.JSONParamValidator(zone_third_partner_proto.ApiDeleteReq{}), middleware.JwtAuthenticator(), ApiDeleteZoneThirdPartner)
|
//apiZoneThirdPartnerGroup.POST("delete", middleware.JSONParamValidator(zone_third_partner_proto.ApiDeleteReq{}), middleware.JwtAuthenticator(), ApiDeleteZoneThirdPartner)
|
||||||
apiZoneThirdPartnerGroup.POST("list", middleware.JSONParamValidator(zone_third_partner_proto.ApiListReq{}), middleware.JwtAuthenticator(), ApiGetZoneThirdPartnerList)
|
apiZoneThirdPartnerGroup.POST("list", middleware.JSONParamValidator(zone_third_partner_proto.ApiListReq{}), middleware.JwtAuthenticator(), ApiGetZoneThirdPartnerList)
|
||||||
|
|
|
@ -527,6 +527,11 @@ func (s *Service) ApiGetAccountListForOthersByUserId(ctx *gin.Context, req *acco
|
||||||
ec = errcode.ErrCodeAccountSrvFail
|
ec = errcode.ErrCodeAccountSrvFail
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if account == nil {
|
||||||
|
logger.Error("No account entity was found")
|
||||||
|
ec = errcode.ErrCodeAccountNotExist
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
vo = &accountproto.ApiListOthersVO{}
|
vo = &accountproto.ApiListOthersVO{}
|
||||||
vo.CopyAccount(account)
|
vo.CopyAccount(account)
|
||||||
|
|
Loading…
Reference in New Issue