add admin

This commit is contained in:
2026-08-07 15:40:17 +08:00
parent 10424d23d8
commit 56674a850e
28 changed files with 2066 additions and 569 deletions
+30
View File
@@ -0,0 +1,30 @@
package logic
import (
"context"
"admin/admin"
"admin/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type PasswordLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewPasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PasswordLogic {
return &PasswordLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *PasswordLogic) Password(in *admin.PasswordRequest) (*admin.Response, error) {
// todo: add your logic here and delete this line
return &admin.Response{}, nil
}