GroupPowerNoOwner=myerr.NewBusinessCode(15005,"power owner not exits or unique",myerr.BusinessData{})// 国家势力主不存在或不唯一
GroupPowerStayTooShort=myerr.NewBusinessCode(15006,"You joined this power not more than 10 days ago",myerr.BusinessData{})// 加入国家势力不超过10天
GroupPowerDealerNotMember=myerr.NewBusinessCode(15007,"Not family member",myerr.BusinessData{})// 代理转账失败-非家族成员
GroupPowerDealerCanNotSole=myerr.NewBusinessCode(15008,"This user already has a family agent and cannot sell diamonds",myerr.BusinessData{})// 代理转账失败-此用户已有家族代理,不能出售钻石
GroupPowerDealerCanNotBuy=myerr.NewBusinessCode(15009,"Buy diamonds from your family agent",myerr.BusinessData{})// 请向本家族代理购买钻石
GroupPowerDealerNeedJoin=myerr.NewBusinessCode(15010,"Please join the agent's family to purchase",myerr.BusinessData{})// 请加入代理的家族后进行购买
TaskHasAward=myerr.NewBusinessCode(19001,"task has award",myerr.BusinessData{})
//if err := mysql.Db.Raw("SELECT u.user_id, u.group_power_id FROM group_power_user u, group_power p WHERE u.group_power_id = p.id AND u.role = ? and p.status = ? and p.id in (?)", groupPower_e.GroupPowerUserRoleMgr, groupPower_e.GroupPowerUserHas, groupPowerIds).Scan(&groupPowerUsers).Error; err != nil {