func (_m *PostKeeper) DeletePost(ctx types.Context, permlink linotypes.Permlink) types.Error {
	ret := _m.Called(ctx, permlink)
	var r0 types.Error
	if rf, ok := ret.Get(0).(func(types.Context, linotypes.Permlink) types.Error); ok {
		r0 = rf(ctx, permlink)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(types.Error)
		}
	}
	return r0
}
DeletePost provides a mock function with given fields: ctx, permlink
package mocks
import (
	linotypes "github.com/lino-network/lino/types"
	amino "github.com/tendermint/go-amino"
	mock "github.com/stretchr/testify/mock"
	model "github.com/lino-network/lino/x/post/model"
	posttypes "github.com/lino-network/lino/x/post/types"
	types "github.com/cosmos/cosmos-sdk/types"
)
type PostKeeper struct {
	mock.Mock
}
func (_m *PostKeeper) CreatePost(ctx types.Context, author linotypes.AccountKey, postID string, createdBy linotypes.AccountKey, content string, title string) types.Error {
	ret := _m.Called(ctx, author, postID, createdBy, content, title)
	var r0 types.Error
	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, string, linotypes.AccountKey, string, string) types.Error); ok {
		r0 = rf(ctx, author, postID, createdBy, content, title)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(types.Error)
		}
	}
	return r0
}