增加 8圈自动登录
This commit is contained in:
21
internal/controller/auth/auth_v1_quan_8_autologin.go
Normal file
21
internal/controller/auth/auth_v1_quan_8_autologin.go
Normal file
@ -0,0 +1,21 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
"server/internal/service"
|
||||
|
||||
"server/api/auth/v1"
|
||||
)
|
||||
|
||||
func (c *ControllerV1) Quan8Autologin(ctx context.Context, req *v1.Quan8AutologinReq) (res *v1.Quan8AutologinRes, err error) {
|
||||
out, err := service.User().Quan8Autologin(ctx, &model.Quan8AutologinIn{
|
||||
UUID: req.UUID,
|
||||
StoreId: req.StoreId,
|
||||
})
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
return &v1.Quan8AutologinRes{Token: out.Token}, nil
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user