auth_service.go 345 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "cris/api/v1/common"
  4. )
  5. type LoginService struct{}
  6. func (s *LoginService) Login(req *common.LoginReq) *common.LoginRes {
  7. // 在这里进行具体的逻辑处理
  8. return &common.LoginRes{
  9. Message: "Login successful",
  10. Data: map[string]interface{}{
  11. "email": req.Email,
  12. "password": req.Password,
  13. },
  14. }
  15. }