mysql 跑通
This commit is contained in:
@@ -25,6 +25,15 @@ func NewUserFontsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserFon
|
||||
|
||||
func (l *UserFontsLogic) UserFonts(req *types.Request) (resp *types.Response, err error) {
|
||||
// todo: add your logic here and delete this line
|
||||
|
||||
f, err := l.svcCtx.FsFontModel.FindOne(context.TODO(), 10)
|
||||
if err != nil {
|
||||
// panic(err)
|
||||
logx.Error(err)
|
||||
return
|
||||
}
|
||||
logx.Info(f)
|
||||
resp = &types.Response{
|
||||
Data: f,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user