| 1234567891011121314151617181920212223 |
- // @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;
- },
- /** rpc MiniProgramLogin (LoginRequest) returns (LoginReply){
- // option (google.api.http) = {
- // post: "/api/login/mini_program",
- // body:"*"
- // };
- // }; */
- Login: async (req?: LoginRequest) => {
- const res = await request.post<{ data: LoginReply, code: string, message: string }>('/api/login', req);
- return res.data;
- },
- };
- export default AccountService;
|