initial commit

This commit is contained in:
zp
2024-01-12 18:08:51 +08:00
commit 00122cc66d
74 changed files with 1957 additions and 0 deletions

View File

@ -0,0 +1,32 @@
// ================================================================================
// 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
}