Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas3-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas3-fe
Commits
8adfa0c5
Commit
8adfa0c5
authored
Dec 27, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: api迁移
parent
3e293122
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
20 deletions
+19
-20
UserCode.ts
src/shared/models/user-service/UserCode.ts
+5
-5
UserPassword.ts
src/shared/models/user-service/UserPassword.ts
+6
-7
UserRegister.ts
src/shared/models/user-service/UserRegister.ts
+8
-8
No files found.
src/shared/models/user-service/UserCode.ts
View file @
8adfa0c5
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
api
}
from
'@shared/http/axios'
@
Serializable
()
@
Serializable
()
export
class
UserCodeGetReq
{
target
:
string
type
:
string
}
@
Serializable
()
export
class
UserCode
{
export
class
UserCode
{
/**
/**
* 发送验证码
* 发送验证码
...
@@ -17,3 +12,8 @@ export class UserCode {
...
@@ -17,3 +12,8 @@ export class UserCode {
})
})
}
}
}
}
@
Serializable
()
export
class
UserCodeGetReq
{
target
:
string
type
:
string
}
src/shared/models/user-service/UserPassword.ts
View file @
8adfa0c5
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
JsonProperty
,
Serializable
}
from
'typescript-json-serializer'
import
{
api
}
from
'@shared/http/axios'
import
{
api
}
from
'@shared/http/axios'
import
{
Model
}
from
'@shared/models/Model'
import
{
Model
}
from
'@shared/models/Model'
@
Serializable
()
export
class
UserPasswordPutReq
extends
Model
<
UserPasswordPutReq
>
{
@
JsonProperty
()
password
:
string
@
JsonProperty
()
phoneNum
:
string
@
JsonProperty
()
verificode
:
string
}
@
Serializable
()
@
Serializable
()
export
class
UserPassword
extends
Model
<
UserPassword
>
{
export
class
UserPassword
extends
Model
<
UserPassword
>
{
static
async
put
(
payload
:
UserPasswordPutReq
)
{
static
async
put
(
payload
:
UserPasswordPutReq
)
{
...
@@ -16,3 +9,9 @@ export class UserPassword extends Model<UserPassword> {
...
@@ -16,3 +9,9 @@ export class UserPassword extends Model<UserPassword> {
})
})
}
}
}
}
@
Serializable
()
export
class
UserPasswordPutReq
extends
Model
<
UserPasswordPutReq
>
{
@
JsonProperty
()
password
:
string
@
JsonProperty
()
phoneNum
:
string
@
JsonProperty
()
verificode
:
string
}
src/shared/models/user-service/UserRegister.ts
View file @
8adfa0c5
...
@@ -3,6 +3,14 @@ import { Model } from '@shared/models/Model'
...
@@ -3,6 +3,14 @@ import { Model } from '@shared/models/Model'
import
{
api
}
from
'@shared/http/axios'
import
{
api
}
from
'@shared/http/axios'
import
{
Encrypt
}
from
'@shared/utils/secret-utils'
import
{
Encrypt
}
from
'@shared/utils/secret-utils'
@
Serializable
()
@
Serializable
()
export
class
UserRegister
{
static
async
post
(
payload
:
UserRegisterPostReq
)
{
return
await
api
.
post
(
'/services/user-service/user/register'
,
{
data
:
serialize
(
payload
),
})
}
}
@
Serializable
()
export
class
UserRegisterPostReq
extends
Model
<
UserRegisterPostReq
>
{
export
class
UserRegisterPostReq
extends
Model
<
UserRegisterPostReq
>
{
@
JsonProperty
()
uname
:
string
@
JsonProperty
()
uname
:
string
@
JsonProperty
()
mail
:
string
@
JsonProperty
()
mail
:
string
...
@@ -16,11 +24,3 @@ export class UserRegisterPostReq extends Model<UserRegisterPostReq> {
...
@@ -16,11 +24,3 @@ export class UserRegisterPostReq extends Model<UserRegisterPostReq> {
@
JsonProperty
()
@
JsonProperty
()
verificode
:
string
verificode
:
string
}
}
@
Serializable
()
export
class
UserRegister
{
static
async
post
(
payload
:
UserRegisterPostReq
)
{
return
await
api
.
post
(
'/services/user-service/user/register'
,
{
data
:
serialize
(
payload
),
})
}
}
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