Codeigniter编写后台管理系统
2022-10-28 15:19:56
207
{{single.collect_count}}

源码

CMS API

登录界面: url根据服务器域名对应更改(例如本机url就是localhost)

url/news/php/index.php/login

main = url/news/php/index.php

登录接口

PortURLMethod
登录接口main/login_api/loginPOST
ParamsOther
username,password账号:yaojialong,12345678

频道接口

PortURLMethod
频道接口main/news_api/get_channelGET
ParamsOther
 

自动登录接口

PortURLMethod
自动登录接口main/login_api/auto_loginPOST
ParamsOther
username,token 

根据频道显示对应新闻

PortURLMethod
根据频道显示对应新闻main/news_api/show_detail_by_channel_idGET
ParamsOther
page,channel_id例如:channel_id:4 军事 6 推荐 7 热点 8 娱乐

新闻根据id显示详细内容的接口

PortURLMethod
新闻根据id显示详细内容的接口main/news_api/show_detailGET
ParamsOther
id 

注册用户的接口

PortURLMethod
注册用户的接口main/login_api/registerPOST
ParamsOther
params{username,password} 

插入新闻的接口

PortURLMethod
插入新闻的接口main/news_api/insert_newsGET
ParamsOther
title,text 

删除新闻的接口

PortURLMethod
删除新闻的接口main/news_api/delete_newsGET
ParamsOther
id

 

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}