mirror of
https://github.com/PengZhangs2017582/novel.git
synced 2025-06-23 02:31:35 +08:00
33 lines
726 B
Go
33 lines
726 B
Go
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"novel/internal/model/entity"
|
|
)
|
|
|
|
type (
|
|
ISession interface {
|
|
SetWriter(ctx context.Context, writer *entity.Writer) error
|
|
}
|
|
)
|
|
|
|
var (
|
|
localSession ISession
|
|
)
|
|
|
|
func Session() ISession {
|
|
if localSession == nil {
|
|
panic("implement not found for interface ISession, forgot register?")
|
|
}
|
|
return localSession
|
|
}
|
|
|
|
func RegisterSession(i ISession) {
|
|
localSession = i
|
|
}
|