Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
wenyuanwall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
wenyuanwall
Commits
7ca94f4e
Commit
7ca94f4e
authored
Dec 26, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new apis
parent
8c311bae
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
547 additions
and
8 deletions
+547
-8
src/app/api/api.module.ts
src/app/api/api.module.ts
+6
-2
src/app/api/models.ts
src/app/api/models.ts
+3
-0
src/app/api/models/blacklist-account-result-dto.ts
src/app/api/models/blacklist-account-result-dto.ts
+1
-1
src/app/api/models/whitelist-account-ref-refs-result-dto.ts
src/app/api/models/whitelist-account-ref-refs-result-dto.ts
+45
-0
src/app/api/models/whitelist-account-ref-result-dto.ts
src/app/api/models/whitelist-account-ref-result-dto.ts
+51
-0
src/app/api/models/whitelist-account-refs-result-dto.ts
src/app/api/models/whitelist-account-refs-result-dto.ts
+45
-0
src/app/api/models/whitelist-account-result-dto.ts
src/app/api/models/whitelist-account-result-dto.ts
+21
-4
src/app/api/services.ts
src/app/api/services.ts
+3
-1
src/app/api/services/ad.service.ts
src/app/api/services/ad.service.ts
+134
-0
src/app/api/services/blacklist-account.service.ts
src/app/api/services/blacklist-account.service.ts
+123
-0
src/app/api/services/whitelist-account.service.ts
src/app/api/services/whitelist-account.service.ts
+115
-0
No files found.
src/app/api/api.module.ts
View file @
7ca94f4e
...
@@ -4,7 +4,9 @@ import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core
...
@@ -4,7 +4,9 @@ import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
ApiConfiguration
,
ApiConfigurationParams
}
from
'
./api-configuration
'
;
import
{
ApiConfiguration
,
ApiConfigurationParams
}
from
'
./api-configuration
'
;
import
{
ApiService
}
from
'
./services/api.service
'
;
import
{
BlacklistAccountService
}
from
'
./services/blacklist-account.service
'
;
import
{
AdService
}
from
'
./services/ad.service
'
;
import
{
WhitelistAccountService
}
from
'
./services/whitelist-account.service
'
;
/**
/**
* Module that provides all services and configuration.
* Module that provides all services and configuration.
...
@@ -14,7 +16,9 @@ import { ApiService } from './services/api.service';
...
@@ -14,7 +16,9 @@ import { ApiService } from './services/api.service';
exports
:
[],
exports
:
[],
declarations
:
[],
declarations
:
[],
providers
:
[
providers
:
[
ApiService
,
BlacklistAccountService
,
AdService
,
WhitelistAccountService
,
ApiConfiguration
ApiConfiguration
],
],
})
})
...
...
src/app/api/models.ts
View file @
7ca94f4e
...
@@ -4,5 +4,8 @@ export { BlacklistAccountResultDtoPaginatedReturnMessageDto } from './models/bla
...
@@ -4,5 +4,8 @@ export { BlacklistAccountResultDtoPaginatedReturnMessageDto } from './models/bla
export
{
Ad
}
from
'
./models/ad
'
;
export
{
Ad
}
from
'
./models/ad
'
;
export
{
AdReturnMessageDto
}
from
'
./models/ad-return-message-dto
'
;
export
{
AdReturnMessageDto
}
from
'
./models/ad-return-message-dto
'
;
export
{
StringReturnMessageDto
}
from
'
./models/string-return-message-dto
'
;
export
{
StringReturnMessageDto
}
from
'
./models/string-return-message-dto
'
;
export
{
WhitelistAccountRefRefsResultDto
}
from
'
./models/whitelist-account-ref-refs-result-dto
'
;
export
{
WhitelistAccountRefResultDto
}
from
'
./models/whitelist-account-ref-result-dto
'
;
export
{
WhitelistAccountRefsResultDto
}
from
'
./models/whitelist-account-refs-result-dto
'
;
export
{
WhitelistAccountResultDto
}
from
'
./models/whitelist-account-result-dto
'
;
export
{
WhitelistAccountResultDto
}
from
'
./models/whitelist-account-result-dto
'
;
export
{
WhitelistAccountResultDtoPaginatedReturnMessageDto
}
from
'
./models/whitelist-account-result-dto-paginated-return-message-dto
'
;
export
{
WhitelistAccountResultDtoPaginatedReturnMessageDto
}
from
'
./models/whitelist-account-result-dto-paginated-return-message-dto
'
;
src/app/api/models/blacklist-account-result-dto.ts
View file @
7ca94f4e
...
@@ -13,5 +13,5 @@ export interface BlacklistAccountResultDto {
...
@@ -13,5 +13,5 @@ export interface BlacklistAccountResultDto {
* Blacklist ID.
* Blacklist ID.
*/
*/
blacklistId
:
string
;
blacklistId
:
string
;
id
?
:
number
;
id
:
number
;
}
}
src/app/api/models/whitelist-account-ref-refs-result-dto.ts
0 → 100644
View file @
7ca94f4e
/* tslint:disable */
/* eslint-disable */
export
interface
WhitelistAccountRefRefsResultDto
{
/**
* QQ account number.
*/
account
:
string
;
/**
* false => not available in random
*/
enabled
:
boolean
;
/**
* Fee
*/
fee
?:
string
;
/**
* forbidden
*/
forbidden
?:
string
;
id
:
number
;
/**
* name
*/
name
:
string
;
/**
* Reference ID
*/
refId
?:
number
;
/**
* Twitter ID
*/
twitter
?:
string
;
/**
* type
*/
type
?:
string
;
}
src/app/api/models/whitelist-account-ref-result-dto.ts
0 → 100644
View file @
7ca94f4e
/* tslint:disable */
/* eslint-disable */
import
{
WhitelistAccountRefRefsResultDto
}
from
'
./whitelist-account-ref-refs-result-dto
'
;
export
interface
WhitelistAccountRefResultDto
{
/**
* QQ account number.
*/
account
:
string
;
/**
* false => not available in random
*/
enabled
:
boolean
;
/**
* Fee
*/
fee
?:
string
;
/**
* forbidden
*/
forbidden
?:
string
;
id
:
number
;
/**
* name
*/
name
:
string
;
/**
* Reference ID
*/
refId
?:
number
;
/**
* Referenced by these accounts
*/
refs
?:
Array
<
WhitelistAccountRefRefsResultDto
>
;
/**
* Twitter ID
*/
twitter
?:
string
;
/**
* type
*/
type
?:
string
;
}
src/app/api/models/whitelist-account-refs-result-dto.ts
0 → 100644
View file @
7ca94f4e
/* tslint:disable */
/* eslint-disable */
export
interface
WhitelistAccountRefsResultDto
{
/**
* QQ account number.
*/
account
:
string
;
/**
* false => not available in random
*/
enabled
:
boolean
;
/**
* Fee
*/
fee
?:
string
;
/**
* forbidden
*/
forbidden
?:
string
;
id
:
number
;
/**
* name
*/
name
:
string
;
/**
* Reference ID
*/
refId
?:
number
;
/**
* Twitter ID
*/
twitter
?:
string
;
/**
* type
*/
type
?:
string
;
}
src/app/api/models/whitelist-account-result-dto.ts
View file @
7ca94f4e
/* tslint:disable */
/* tslint:disable */
/* eslint-disable */
/* eslint-disable */
import
{
WhitelistAccountRefResultDto
}
from
'
./whitelist-account-ref-result-dto
'
;
import
{
WhitelistAccountRefsResultDto
}
from
'
./whitelist-account-refs-result-dto
'
;
export
interface
WhitelistAccountResultDto
{
export
interface
WhitelistAccountResultDto
{
/**
/**
...
@@ -8,9 +10,9 @@ export interface WhitelistAccountResultDto {
...
@@ -8,9 +10,9 @@ export interface WhitelistAccountResultDto {
account
:
string
;
account
:
string
;
/**
/**
* false => not a
ctive
* false => not a
vailable in random
*/
*/
enabled
?
:
boolean
;
enabled
:
boolean
;
/**
/**
* Fee
* Fee
...
@@ -21,17 +23,32 @@ export interface WhitelistAccountResultDto {
...
@@ -21,17 +23,32 @@ export interface WhitelistAccountResultDto {
* forbidden
* forbidden
*/
*/
forbidden
?:
string
;
forbidden
?:
string
;
id
?
:
number
;
id
:
number
;
/**
/**
* name
* name
*/
*/
name
:
string
;
name
:
string
;
/**
* Referenced account
*/
ref
?:
WhitelistAccountRefResultDto
;
/**
* Reference ID
*/
refId
?:
number
;
/**
* Referenced by these accounts
*/
refs
?:
Array
<
WhitelistAccountRefsResultDto
>
;
/**
/**
* Twitter ID
* Twitter ID
*/
*/
twitter
:
string
;
twitter
?
:
string
;
/**
/**
* type
* type
...
...
src/app/api/services.ts
View file @
7ca94f4e
export
{
ApiService
}
from
'
./services/api.service
'
;
export
{
BlacklistAccountService
}
from
'
./services/blacklist-account.service
'
;
export
{
AdService
}
from
'
./services/ad.service
'
;
export
{
WhitelistAccountService
}
from
'
./services/whitelist-account.service
'
;
src/app/api/services/a
pi
.service.ts
→
src/app/api/services/a
d
.service.ts
View file @
7ca94f4e
...
@@ -10,14 +10,12 @@ import { Observable } from 'rxjs';
...
@@ -10,14 +10,12 @@ import { Observable } from 'rxjs';
import
{
map
,
filter
}
from
'
rxjs/operators
'
;
import
{
map
,
filter
}
from
'
rxjs/operators
'
;
import
{
AdReturnMessageDto
}
from
'
../models/ad-return-message-dto
'
;
import
{
AdReturnMessageDto
}
from
'
../models/ad-return-message-dto
'
;
import
{
BlacklistAccountResultDtoPaginatedReturnMessageDto
}
from
'
../models/blacklist-account-result-dto-paginated-return-message-dto
'
;
import
{
StringReturnMessageDto
}
from
'
../models/string-return-message-dto
'
;
import
{
StringReturnMessageDto
}
from
'
../models/string-return-message-dto
'
;
import
{
WhitelistAccountResultDtoPaginatedReturnMessageDto
}
from
'
../models/whitelist-account-result-dto-paginated-return-message-dto
'
;
@
Injectable
({
@
Injectable
({
providedIn
:
'
root
'
,
providedIn
:
'
root
'
,
})
})
export
class
A
pi
Service
extends
BaseService
{
export
class
A
d
Service
extends
BaseService
{
constructor
(
constructor
(
config
:
ApiConfiguration
,
config
:
ApiConfiguration
,
http
:
HttpClient
http
:
HttpClient
...
@@ -25,104 +23,6 @@ export class ApiService extends BaseService {
...
@@ -25,104 +23,6 @@ export class ApiService extends BaseService {
super
(
config
,
http
);
super
(
config
,
http
);
}
}
/**
* Path part for operation blacklistAccountControllerFindAll
*/
static
readonly
BlacklistAccountControllerFindAllPath
=
'
/api/blacklist
'
;
/**
* Find all BlacklistAccount.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `blacklistAccountControllerFindAll()` instead.
*
* This method doesn't expect any request body.
*/
blacklistAccountControllerFindAll$Response
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
/**
* Blacklist ID.
*/
blacklistId
?:
string
;
}):
Observable
<
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
ApiService
.
BlacklistAccountControllerFindAllPath
,
'
get
'
);
if
(
params
)
{
rb
.
query
(
'
pageCount
'
,
params
.
pageCount
,
{});
rb
.
query
(
'
recordsPerPage
'
,
params
.
recordsPerPage
,
{});
rb
.
query
(
'
id
'
,
params
.
id
,
{});
rb
.
query
(
'
account
'
,
params
.
account
,
{});
rb
.
query
(
'
blacklistId
'
,
params
.
blacklistId
,
{});
}
return
this
.
http
.
request
(
rb
.
build
({
responseType
:
'
json
'
,
accept
:
'
application/json
'
})).
pipe
(
filter
((
r
:
any
)
=>
r
instanceof
HttpResponse
),
map
((
r
:
HttpResponse
<
any
>
)
=>
{
return
r
as
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
;
})
);
}
/**
* Find all BlacklistAccount.
*
*
*
* This method provides access to only to the response body.
* To access the full response (for headers, for example), `blacklistAccountControllerFindAll$Response()` instead.
*
* This method doesn't expect any request body.
*/
blacklistAccountControllerFindAll
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
/**
* Blacklist ID.
*/
blacklistId
?:
string
;
}):
Observable
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
{
return
this
.
blacklistAccountControllerFindAll$Response
(
params
).
pipe
(
map
((
r
:
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
)
=>
r
.
body
as
BlacklistAccountResultDtoPaginatedReturnMessageDto
)
);
}
/**
/**
* Path part for operation adControllerGetAd
* Path part for operation adControllerGetAd
*/
*/
...
@@ -142,7 +42,7 @@ export class ApiService extends BaseService {
...
@@ -142,7 +42,7 @@ export class ApiService extends BaseService {
id
?:
number
;
id
?:
number
;
}):
Observable
<
StrictHttpResponse
<
AdReturnMessageDto
>>
{
}):
Observable
<
StrictHttpResponse
<
AdReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
A
pi
Service
.
AdControllerGetAdPath
,
'
get
'
);
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
A
d
Service
.
AdControllerGetAdPath
,
'
get
'
);
if
(
params
)
{
if
(
params
)
{
rb
.
query
(
'
id
'
,
params
.
id
,
{});
rb
.
query
(
'
id
'
,
params
.
id
,
{});
}
}
...
@@ -196,7 +96,7 @@ export class ApiService extends BaseService {
...
@@ -196,7 +96,7 @@ export class ApiService extends BaseService {
id
:
number
;
id
:
number
;
}):
Observable
<
StrictHttpResponse
<
StringReturnMessageDto
>>
{
}):
Observable
<
StrictHttpResponse
<
StringReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
A
pi
Service
.
AdControllerClickAdPath
,
'
get
'
);
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
A
d
Service
.
AdControllerClickAdPath
,
'
get
'
);
if
(
params
)
{
if
(
params
)
{
rb
.
path
(
'
id
'
,
params
.
id
,
{});
rb
.
path
(
'
id
'
,
params
.
id
,
{});
}
}
...
@@ -231,94 +131,4 @@ export class ApiService extends BaseService {
...
@@ -231,94 +131,4 @@ export class ApiService extends BaseService {
);
);
}
}
/**
* Path part for operation whitelistAccountControllerFindAll
*/
static
readonly
WhitelistAccountControllerFindAllPath
=
'
/api/whitelist-account
'
;
/**
* Find all WhitelistAccount.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `whitelistAccountControllerFindAll()` instead.
*
* This method doesn't expect any request body.
*/
whitelistAccountControllerFindAll$Response
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
random
?:
number
;
}):
Observable
<
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
ApiService
.
WhitelistAccountControllerFindAllPath
,
'
get
'
);
if
(
params
)
{
rb
.
query
(
'
pageCount
'
,
params
.
pageCount
,
{});
rb
.
query
(
'
recordsPerPage
'
,
params
.
recordsPerPage
,
{});
rb
.
query
(
'
id
'
,
params
.
id
,
{});
rb
.
query
(
'
account
'
,
params
.
account
,
{});
rb
.
query
(
'
random
'
,
params
.
random
,
{});
}
return
this
.
http
.
request
(
rb
.
build
({
responseType
:
'
json
'
,
accept
:
'
application/json
'
})).
pipe
(
filter
((
r
:
any
)
=>
r
instanceof
HttpResponse
),
map
((
r
:
HttpResponse
<
any
>
)
=>
{
return
r
as
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
;
})
);
}
/**
* Find all WhitelistAccount.
*
*
*
* This method provides access to only to the response body.
* To access the full response (for headers, for example), `whitelistAccountControllerFindAll$Response()` instead.
*
* This method doesn't expect any request body.
*/
whitelistAccountControllerFindAll
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
random
?:
number
;
}):
Observable
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
{
return
this
.
whitelistAccountControllerFindAll$Response
(
params
).
pipe
(
map
((
r
:
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
)
=>
r
.
body
as
WhitelistAccountResultDtoPaginatedReturnMessageDto
)
);
}
}
}
src/app/api/services/blacklist-account.service.ts
0 → 100644
View file @
7ca94f4e
/* tslint:disable */
/* eslint-disable */
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
HttpClient
,
HttpResponse
}
from
'
@angular/common/http
'
;
import
{
BaseService
}
from
'
../base-service
'
;
import
{
ApiConfiguration
}
from
'
../api-configuration
'
;
import
{
StrictHttpResponse
}
from
'
../strict-http-response
'
;
import
{
RequestBuilder
}
from
'
../request-builder
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
map
,
filter
}
from
'
rxjs/operators
'
;
import
{
BlacklistAccountResultDtoPaginatedReturnMessageDto
}
from
'
../models/blacklist-account-result-dto-paginated-return-message-dto
'
;
@
Injectable
({
providedIn
:
'
root
'
,
})
export
class
BlacklistAccountService
extends
BaseService
{
constructor
(
config
:
ApiConfiguration
,
http
:
HttpClient
)
{
super
(
config
,
http
);
}
/**
* Path part for operation blacklistAccountControllerFindAll
*/
static
readonly
BlacklistAccountControllerFindAllPath
=
'
/api/blacklist
'
;
/**
* Find all BlacklistAccount.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `blacklistAccountControllerFindAll()` instead.
*
* This method doesn't expect any request body.
*/
blacklistAccountControllerFindAll$Response
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
/**
* Blacklist ID.
*/
blacklistId
?:
string
;
}):
Observable
<
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
BlacklistAccountService
.
BlacklistAccountControllerFindAllPath
,
'
get
'
);
if
(
params
)
{
rb
.
query
(
'
pageCount
'
,
params
.
pageCount
,
{});
rb
.
query
(
'
recordsPerPage
'
,
params
.
recordsPerPage
,
{});
rb
.
query
(
'
id
'
,
params
.
id
,
{});
rb
.
query
(
'
account
'
,
params
.
account
,
{});
rb
.
query
(
'
blacklistId
'
,
params
.
blacklistId
,
{});
}
return
this
.
http
.
request
(
rb
.
build
({
responseType
:
'
json
'
,
accept
:
'
application/json
'
})).
pipe
(
filter
((
r
:
any
)
=>
r
instanceof
HttpResponse
),
map
((
r
:
HttpResponse
<
any
>
)
=>
{
return
r
as
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
;
})
);
}
/**
* Find all BlacklistAccount.
*
*
*
* This method provides access to only to the response body.
* To access the full response (for headers, for example), `blacklistAccountControllerFindAll$Response()` instead.
*
* This method doesn't expect any request body.
*/
blacklistAccountControllerFindAll
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
/**
* Blacklist ID.
*/
blacklistId
?:
string
;
}):
Observable
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
{
return
this
.
blacklistAccountControllerFindAll$Response
(
params
).
pipe
(
map
((
r
:
StrictHttpResponse
<
BlacklistAccountResultDtoPaginatedReturnMessageDto
>
)
=>
r
.
body
as
BlacklistAccountResultDtoPaginatedReturnMessageDto
)
);
}
}
src/app/api/services/whitelist-account.service.ts
0 → 100644
View file @
7ca94f4e
/* tslint:disable */
/* eslint-disable */
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
HttpClient
,
HttpResponse
}
from
'
@angular/common/http
'
;
import
{
BaseService
}
from
'
../base-service
'
;
import
{
ApiConfiguration
}
from
'
../api-configuration
'
;
import
{
StrictHttpResponse
}
from
'
../strict-http-response
'
;
import
{
RequestBuilder
}
from
'
../request-builder
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
map
,
filter
}
from
'
rxjs/operators
'
;
import
{
WhitelistAccountResultDtoPaginatedReturnMessageDto
}
from
'
../models/whitelist-account-result-dto-paginated-return-message-dto
'
;
@
Injectable
({
providedIn
:
'
root
'
,
})
export
class
WhitelistAccountService
extends
BaseService
{
constructor
(
config
:
ApiConfiguration
,
http
:
HttpClient
)
{
super
(
config
,
http
);
}
/**
* Path part for operation whitelistAccountControllerFindAll
*/
static
readonly
WhitelistAccountControllerFindAllPath
=
'
/api/whitelist-account
'
;
/**
* Find all WhitelistAccount.
*
*
*
* This method provides access to the full `HttpResponse`, allowing access to response headers.
* To access only the response body, use `whitelistAccountControllerFindAll()` instead.
*
* This method doesn't expect any request body.
*/
whitelistAccountControllerFindAll$Response
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
random
?:
number
;
}):
Observable
<
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>>
{
const
rb
=
new
RequestBuilder
(
this
.
rootUrl
,
WhitelistAccountService
.
WhitelistAccountControllerFindAllPath
,
'
get
'
);
if
(
params
)
{
rb
.
query
(
'
pageCount
'
,
params
.
pageCount
,
{});
rb
.
query
(
'
recordsPerPage
'
,
params
.
recordsPerPage
,
{});
rb
.
query
(
'
id
'
,
params
.
id
,
{});
rb
.
query
(
'
account
'
,
params
.
account
,
{});
rb
.
query
(
'
random
'
,
params
.
random
,
{});
}
return
this
.
http
.
request
(
rb
.
build
({
responseType
:
'
json
'
,
accept
:
'
application/json
'
})).
pipe
(
filter
((
r
:
any
)
=>
r
instanceof
HttpResponse
),
map
((
r
:
HttpResponse
<
any
>
)
=>
{
return
r
as
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
;
})
);
}
/**
* Find all WhitelistAccount.
*
*
*
* This method provides access to only to the response body.
* To access the full response (for headers, for example), `whitelistAccountControllerFindAll$Response()` instead.
*
* This method doesn't expect any request body.
*/
whitelistAccountControllerFindAll
(
params
?:
{
/**
* The nth page, starting with 1.
*/
pageCount
?:
number
;
/**
* Records per page.
*/
recordsPerPage
?:
number
;
id
?:
number
;
/**
* QQ account number.
*/
account
?:
string
;
random
?:
number
;
}):
Observable
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
{
return
this
.
whitelistAccountControllerFindAll$Response
(
params
).
pipe
(
map
((
r
:
StrictHttpResponse
<
WhitelistAccountResultDtoPaginatedReturnMessageDto
>
)
=>
r
.
body
as
WhitelistAccountResultDtoPaginatedReturnMessageDto
)
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment