ums_resource

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {

	/**
	 * 添加资源
	 */
	Create(ctx context.Context, param dto.UmsResourceParam) (int64, error)

	/**
	 * 修改资源
	 */
	Update(ctx context.Context, id int64, param dto.UmsResourceParam) (int64, error)

	/**
	 * 获取资源详情
	 */
	GetItem(ctx context.Context, id int64) (*dto.UmsResource, error)

	/**
	 * 删除资源
	 */
	Delete(ctx context.Context, id int64) (int64, error)

	/**
	 * 分页查询资源
	 */
	List(ctx context.Context, categoryId int64,
		nameKeyword, urlKeyword string, pageSize, pageNum int) ([]dto.UmsResource, int64, error)

	/**
	 * 查询全部资源
	 */
	ListAll(ctx context.Context) ([]dto.UmsResource, error)
	// contains filtered or unexported methods
}

后台资源管理Service

func New

func New() Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL