mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-04 23:52:53 +08:00
19 lines
414 B
Go
19 lines
414 B
Go
package logic
|
|
|
|
import (
|
|
"github.com/lzh-1625/go_process_manager/internal/app/model"
|
|
"github.com/lzh-1625/go_process_manager/internal/app/repository"
|
|
)
|
|
|
|
type wsShareLogic struct{}
|
|
|
|
var WsSahreLogic = &wsShareLogic{}
|
|
|
|
func (w *wsShareLogic) GetWsShareList() []*model.WsShare {
|
|
return repository.WsShare.GetWsShareList()
|
|
}
|
|
|
|
func (w *wsShareLogic) DeleteById(id int) error {
|
|
return repository.WsShare.Delete(id)
|
|
}
|