guild_member service created in /internal/service

This commit is contained in:
stratic-dev
2024-10-17 19:23:47 +01:00
parent 5baff56517
commit 674ac9bd47
6 changed files with 45 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ import (
func HandleMsgMhfPostGuildScout(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket) {
pkt := p.(*mhfpacket.MsgMhfPostGuildScout)
actorCharGuildData, err := GetCharacterGuildData(s, s.CharID)
actorCharGuildData, err := service.GetCharacterGuildData(s.CharID)
if err != nil {
s.DoAckBufFail(pkt.AckHandle, make([]byte, 4))
@@ -95,7 +95,7 @@ func HandleMsgMhfPostGuildScout(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket)
func HandleMsgMhfCancelGuildScout(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket) {
pkt := p.(*mhfpacket.MsgMhfCancelGuildScout)
guildCharData, err := GetCharacterGuildData(s, s.CharID)
guildCharData, err := service.GetCharacterGuildData(s.CharID)
if err != nil {
panic(err)