33 lines
820 B
TypeScript
33 lines
820 B
TypeScript
import { cmsPostFectch } from "@/components/lib/api";
|
|
|
|
export const isLogin = async () => {
|
|
const headers = {
|
|
accept: "application/json",
|
|
"Content-Type": "application/json",
|
|
"X-Site-Id": "WR",
|
|
"Access-Control-Expose-Headers" : ["Authorization","refresh-token","token-id"]
|
|
};
|
|
const param = { userId: "tuser10003", password: "test1234!" };
|
|
await cmsPostFectch("/user-service/login",param,headers);
|
|
};
|
|
|
|
// export type LoginState = {
|
|
// login: {} as any;
|
|
// };
|
|
|
|
// export type loginType = LoginState & LoginActions;
|
|
|
|
// export const loginState: LoginState = {
|
|
// login: {},
|
|
// };
|
|
|
|
// export type LoginActions = {
|
|
// isLogin: () => void;
|
|
// };
|
|
|
|
// export const loginActionExport: (set: any) => LoginActions = (set: any) => {
|
|
// return {
|
|
// isLogin: async () => {},
|
|
// };
|
|
// };
|