Front Design For InfiniteMusic System
All template use WebApi to deal the operate
Recommand Vue.js, but you still can use jQuery(Ajax) :D
10000
Success
Successfully requested
20000
No enough times
No enough times to song
30000
Forbidden
Wrong Access (For User)
The index page use the root path ("/"),
Server will response a 301 code to jump to search page ("/search")
The search page use the path "/search"
A user have to log in to use the search function
keyword
string
keyword of the song
content
list
list of songs
List of Songs Args(content):
artists
list
list of artists
album
dict
album of this song
url
string
the media url of this song (source platform or system cache)
id
int
artist id(platform)
name
string
name of this artist
cover
string
image url of this aritist
id
int
album id(platform)
name
string
name of this album
cover
string
image url of this album
The history page use the path "/history"
Anybody can directly get the history of songs
content
list
list of history songs
List of Songs Args(content):
artists
list
list of artists
album
dict
album of this song
url
string
the media url of this song (system cache)
id
int
artist id(platform)
name
string
name of this artist
cover
string
image url of this aritist
id
int
album id(platform)
name
string
name of this album
cover
string
image url of this album
The list page use the path "/list"
Anybody can directly get the list of whitelist and blacklist
content
dict
dict of list, included whitelist and blacklist
white
list
songs list of whitelist
black
list
songs list of blacklist
artists
list
list of artists
album
dict
album of this song
id
int
artist id(platform)
name
string
name of this artist
cover
string
image url of this aritist
id
int
album id(platform)
name
string
name of this album
cover
string
image url of this album
The confirm page use the path "/confirm"
This page only use for the twice confirm
Located from the search page
Read the parameter from url on front code (Javascript)
Then use the id and platform id to requests the song detail
platform
int
id of the platform
content
list
list of songs
List of Songs Args(content):
artists
list
list of artists
album
dict
album of this song
url
string
the media url of this song (source platform or system cache)
id
int
artist id(platform)
name
string
name of this artist
cover
string
image url of this aritist
id
int
album id(platform)
name
string
name of this album
cover
string
image url of this album
After user clicking the confirm button, send request to this interface
platform
int
id of the platform
The access page use the path "/admin/access"
Only Admin can request this interface
token
string
user(admin operator) token
content
list
list of all users
List of all users (content):
nickname
string
user's nickname
name
string
user's real name (if realname auth passed)
Request for change operate:
token
string
user(admin operator) token
uid
int
user's id to change access
operate
string
admin or user, destination
The audit page use the path "/admin/audit/song" for song audit
Only Admin can request this interface
Get list of songs that songed by users
Path: /api/auditlist/song
token
string
user(admin operator) token
content
list
list of all users
List of songs that users songed (content):
sid
int
id of this song(v.) event
nickname
string
user's nickname
name
string
user's real name (if realname auth passed)
platform
int
platform of the song
artists
list
list of artists
album
dict
album of this song
url
string
the media url of this song (source platform or system cache)
Request for audit operate:
Path: /api/admin/listaudit
token
string
user(admin operator) token
sid
int
id of this song(v.) event
operate
string
pass, abort or ignore
The audit page use the path "/admin/audit/auth" for real name auth audit
Only Admin can request this interface
Get list of user's real name auth.
Path: /api/auditlist/real
token
string
user(admin operator) token
content
list
list of all real name auth requests
List of real name auth requests (content):
img
string
the url of the real name auth img
name
string
real name of the user
Request for audit operate:
Path: /api/admin/realaudit
uid
int
id of the user that you audit
operate
string
pass or abort
token
string
user(admin operator) token
The list manage page use the path "/admin/list"
Only Admin can request this interface
Requests the public interface to get the list of blacklist songs and whitelist songs
Request for list operate:
sid
int
id of this song(v.) event
operate
string
white, black, remove
token
string
user(admin operator) token
The system control page use the path "/admin/system"
Only Admin can request this interface
notice
string
System Notice
switcher
bool
Main switcher for the song function
igTime
bool
``Main switcher to ignore the time limit`
timeRule
list
the timeRule setting
[[6, "16:00:00", "23:59:59"], [0, "00:00:00", "8:00:00"]]
6 stand for Sat., and 0 stand for Sun.
I dont know how to design the form, everything depends on you guys :D
Get the setting now use the public interface: "System Interface"
Save the setting operate:
See the detail in options
token
string
user(admin operator) token
Anybody can directly request this interface
content
dict
dict of list, included whitelist and blacklist
notice
string
System Notice
switcher
bool
Main switcher for the song function
igTime
bool
Main switcher to ignore the time limit
timeRule
list
the timeRule setting