| 123456789101112131415161718192021 |
- // @ts-ignore
- import { request } from 'ice';
- import {DebugLoginRequest,LoginReply,LoginRequest} from "./account_pb";
- const AccountService = {
- DebugLogin: async (req?: DebugLoginRequest) => {
- const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login/debug', req);
- return res.data;
- },
- MiniProgramLogin: async (req?: LoginRequest) => {
- const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login/mini_program', req);
- return res.data;
- },
- WebLogin: async (req?: LoginRequest) => {
- const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login/web', req);
- return res.data;
- },
- };
- export default AccountService;
|