Skip to content

Commit c72be79

Browse files
committed
services done
1 parent e682c55 commit c72be79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+486
-33
lines changed

reactjs/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

reactjs/src/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as React from "react";
2-
import "./App.css";
1+
import * as React from 'react';
2+
import './App.css';
33

4-
import * as abpUserConfiguration from "./services/abpUserConfigurationService";
5-
import { Switch, Route, withRouter } from "react-router-dom";
6-
import Login from "./scenes/Login";
4+
import * as abpUserConfiguration from './services/abpUserConfigurationService';
5+
import { Switch, Route, withRouter } from 'react-router-dom';
6+
import Login from './scenes/Login';
77
class App extends React.Component {
88
componentDidMount() {
99
console.log(abpUserConfiguration.initialize());

reactjs/src/model/entityDto.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface EntityDto {
2+
id: number;
3+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
interface PagedFilterAndSortedRequest {
2+
maxResultCount: number;
3+
skipCount: number;
4+
// sorting: string;
5+
// where: string;
6+
}

reactjs/src/model/pagedResultDto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface PagedResultDto<T> {
2+
totalCount: number;
3+
items: T;
4+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { IsTenantAvaibleInput } from './dto/isTenantAvailableInput';
2+
import { RegisterInput } from './dto/registerInput';
3+
import { IsTenantAvaibleOutput } from './dto/isTenantAvailableOutput';
4+
import { RegisterOutput } from './dto/registerOutput';
5+
import http from '../httpService';
6+
7+
class AccountService {
8+
public async isTenantAvailable(
9+
isTenantAvaibleInput: IsTenantAvaibleInput,
10+
): Promise<IsTenantAvaibleOutput> {
11+
var result = await http.post(
12+
'services/app/Account/IsTenantAvailable',
13+
isTenantAvaibleInput,
14+
);
15+
console.log(result);
16+
return result;
17+
}
18+
public async register(registerInput: RegisterInput): Promise<RegisterOutput> {
19+
var result = await http.post(
20+
'services/app/Account/Register',
21+
registerInput,
22+
);
23+
console.log(result);
24+
return result;
25+
}
26+
}
27+
28+
export default new AccountService();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface IsTenantAvaibleInput {
2+
tenancyName: string;
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface IsTenantAvaibleOutput {
2+
state: number;
3+
tenantId: number;
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export interface RegisterInput {
2+
name: string;
3+
surname: string;
4+
userName: string;
5+
emailAddress: string;
6+
password: string;
7+
captchaResponse: string;
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface RegisterOutput {
2+
canLogin: boolean;
3+
}

0 commit comments

Comments
 (0)