user_http_pb.ts 530 B

1234567891011121314151617
  1. // @ts-ignore
  2. import { request } from 'ice';
  3. import {DebugLoginRequest,LoginReply,LoginRequest} from "./user_pb";
  4. const UserService = {
  5. DebugLogin: async (req?: DebugLoginRequest) => {
  6. const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login/debug', req);
  7. return res.data;
  8. },
  9. Login: async (req?: LoginRequest) => {
  10. const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login', req);
  11. return res.data;
  12. },
  13. };
  14. export default UserService;