func (k Keeper) SetModuleService(moduleName string, moduleService *types.ModuleService) {
	k.moduleServices[moduleName] = moduleService
}
SetModuleService sets the module service for the given module
package keeper
import (
	tmbytes "github.com/tendermint/tendermint/libs/bytes"
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
	"github.com/irisnet/irismod/modules/service/types"
)
func (k Keeper) RegisterModuleService(moduleName string, moduleService *types.ModuleService) error {
	if _, ok := k.moduleServices[moduleName]; ok {
		return sdkerrors.Wrapf(types.ErrModuleServiceRegistered, "%s already registered for module %s", "module service", moduleName)
	}
	k.SetModuleService(moduleName, moduleService)
	return nil
}