当前位置: 首页 > news >正文

武汉网站制作与建设独立站搭建要多少钱

武汉网站制作与建设,独立站搭建要多少钱,澳门网站设计,自己家的电脑宽带50m做网站服务器目录 1:交友项目【通用设置】 1.1:查询通用设置 1.1.1:接口地址 1.1.2:流程分析 1.1.3:代码实现 1.2:设置陌生人问题 1.2.1:接口地址 1.2.2:流程分析 1.2.3:代码…

目录

1:交友项目【通用设置】

1.1:查询通用设置

1.1.1:接口地址

1.1.2:流程分析

1.1.3:代码实现

1.2:设置陌生人问题

1.2.1:接口地址

1.2.2:流程分析

1.2.3:代码实现

1.3:通知设置

1.3.1:接口地址

1.3.2:流程分析

1.3.3:代码实现


1:交友项目【通用设置】

1.1:查询通用设置

 

 

 

1.1.1:接口地址

接口地址:http://192.168.136.160:3000/project/19/interface/api/268

 

1.1.2:流程分析

根据定义的文档接口,请求头需要接收,token信息,响应ResponseEntity<SettingVo>,创建SettingVo进行封装数据,

根据需求需要查询tb_question和tb_settings表中的信息,进行汇总到Vo中。

1.1.3:代码实现

 与前端交互的app-server模块

controller层实现

/*** @Author 爱吃豆的土豆、* @Date 2023/4/4 11:29*/
@RequestMapping("/users")
@RestController
public class UserController {@Resourceprivate UserService userService;@GetMapping("/settings")public ResponseEntity findUsersettings(){SettingsVo usersettings = userService.findUsersettings(UserHolder.getUserId());usersettings.setPhone(UserHolder.getMobile());return ResponseEntity.ok(usersettings);}
}

service层实现

   public SettingsVo findUsersettings(Long userId) {return userApi.findUsersettings(userId);}

统一封装接口的模块

SettingsVo findUsersettings(Long userId);

提供者模块(提供相关接口的实现)

@Overridepublic SettingsVo findUsersettings(Long userId) {Settings setting = setMapper.findSetting(userId);SettingsVo settingsVo = new SettingsVo();Long numberLong = new Long(userId);Integer id = numberLong.intValue();settingsVo.setId(id);if (setting.getGonggaoNotification() == 1){settingsVo.setGonggaoNotification(true);}else {settingsVo.setGonggaoNotification(false);}if (setting.getLikeNotification() == 1){settingsVo.setLikeNotification(true);}else {settingsVo.setLikeNotification(false);}if (setting.getPinglunNotification() == 1){settingsVo.setPinglunNotification(true);}else {settingsVo.setPinglunNotification(false);}Question question = questionMapper.findQuestion(userId);settingsVo.setStrangerQuestion(question.getTxt());return settingsVo;}

1.2:设置陌生人问题

1.2.1:接口地址

接口地址:http://192.168.136.160:3000/project/19/interf

 

1.2.3:代码实现

 与前端交互的app-server模块

 

controller层实现

    @PostMapping("/questions")public ResponseEntity editquestion(@RequestBody Map content){userService.editquestion(String.valueOf(content.get("content")), UserHolder.getUserId());return ResponseEntity.ok(null);}

service层实现

    public void editquestion(String content, Long id) {userApi.editquestion(content,id);}

统一封装接口的模块

 

  void editquestion(String content, Long id);

提供者模块(提供相关接口的实现)

    @Overridepublic void editquestion(String content, Long id) {//查询对应的数据Question question = questionMapper.findQuestion(id);//重新设置question.setTxt(content);questionMapper.updateById(question);}

1.3:通知设置

1.3.1:接口地址

通知管理:对通知进行保存或者更新的操作

http://192.168.136.160:3000/project/19/interface/api/280

 

 

1.3.2:流程分析

 

1.3.3:代码实现

 与前端交互的app-server模块

controller层实现

    @PostMapping("/notifications/setting")public ResponseEntity editsetting(@RequestBody SettingsVo settingsVo){userService.editsetting(settingsVo,UserHolder.getUserId());return ResponseEntity.ok(null);}

service层实现

    public void editsetting(SettingsVo settingsVo, Long userId) {userApi.editsetting(settingsVo,userId);}

统一封装接口的模块

 void editsetting(SettingsVo settingsVo, Long userId);

提供者模块(提供相关接口的实现)

@Overridepublic void editsetting(SettingsVo settingsVo, Long userId) {Settings settings = setMapper.findSetting(userId);if (settingsVo.getGonggaoNotification()){settings.setGonggaoNotification(1);}else {settings.setGonggaoNotification(0);}if (settingsVo.getLikeNotification()){settings.setLikeNotification(1);}else {settings.setLikeNotification(0);}if (settingsVo.getPinglunNotification()){settings.setPinglunNotification(1);}else {settings.setPinglunNotification(0);}setMapper.updateById(settings);}


文章转载自:
http://toffy.kjrp.cn
http://riverlet.kjrp.cn
http://pronounceable.kjrp.cn
http://sinisterly.kjrp.cn
http://interestingly.kjrp.cn
http://leptodactyl.kjrp.cn
http://disrespectable.kjrp.cn
http://indolent.kjrp.cn
http://disanimate.kjrp.cn
http://lorimer.kjrp.cn
http://pairage.kjrp.cn
http://yanaon.kjrp.cn
http://nonsyllabic.kjrp.cn
http://preem.kjrp.cn
http://alliterative.kjrp.cn
http://sturmabteilung.kjrp.cn
http://tektite.kjrp.cn
http://hotliner.kjrp.cn
http://cooperativity.kjrp.cn
http://dominancy.kjrp.cn
http://embank.kjrp.cn
http://chufa.kjrp.cn
http://erubescent.kjrp.cn
http://overblown.kjrp.cn
http://numbfish.kjrp.cn
http://kinsmanship.kjrp.cn
http://sectarianize.kjrp.cn
http://argal.kjrp.cn
http://phansigar.kjrp.cn
http://groceteria.kjrp.cn
http://catechesis.kjrp.cn
http://crockpot.kjrp.cn
http://limonene.kjrp.cn
http://epulary.kjrp.cn
http://normalizer.kjrp.cn
http://inequivalve.kjrp.cn
http://kionectomy.kjrp.cn
http://scrag.kjrp.cn
http://nephrite.kjrp.cn
http://sabang.kjrp.cn
http://cashmerette.kjrp.cn
http://stallman.kjrp.cn
http://coplanarity.kjrp.cn
http://hawash.kjrp.cn
http://underrun.kjrp.cn
http://ghostwrite.kjrp.cn
http://qandahar.kjrp.cn
http://groom.kjrp.cn
http://khapra.kjrp.cn
http://archaeologist.kjrp.cn
http://demonolatry.kjrp.cn
http://cmyk.kjrp.cn
http://shirt.kjrp.cn
http://overfraught.kjrp.cn
http://juxtaposition.kjrp.cn
http://microphenomenon.kjrp.cn
http://ultrasecret.kjrp.cn
http://shakespeariana.kjrp.cn
http://loudhailer.kjrp.cn
http://nativity.kjrp.cn
http://underchurched.kjrp.cn
http://fluey.kjrp.cn
http://arrive.kjrp.cn
http://impressionistic.kjrp.cn
http://orison.kjrp.cn
http://intropin.kjrp.cn
http://governorship.kjrp.cn
http://stronger.kjrp.cn
http://revoltive.kjrp.cn
http://watered.kjrp.cn
http://boatload.kjrp.cn
http://castrametation.kjrp.cn
http://pyrexic.kjrp.cn
http://mortality.kjrp.cn
http://lucidity.kjrp.cn
http://hearthrug.kjrp.cn
http://senseless.kjrp.cn
http://anthobian.kjrp.cn
http://alforja.kjrp.cn
http://capriccio.kjrp.cn
http://tincture.kjrp.cn
http://civitan.kjrp.cn
http://patricentric.kjrp.cn
http://summerset.kjrp.cn
http://insolubility.kjrp.cn
http://isothermic.kjrp.cn
http://intangible.kjrp.cn
http://pmkd.kjrp.cn
http://masturbatory.kjrp.cn
http://organdy.kjrp.cn
http://gourmandism.kjrp.cn
http://paradichlorobenzene.kjrp.cn
http://itinerant.kjrp.cn
http://housewives.kjrp.cn
http://ricebird.kjrp.cn
http://rheochord.kjrp.cn
http://loosestrife.kjrp.cn
http://vexatious.kjrp.cn
http://ineludible.kjrp.cn
http://compel.kjrp.cn
http://www.15wanjia.com/news/62285.html

相关文章:

  • 建设网站的法律可行性挖掘爱站网
  • 网站策划哪里找江苏网站seo营销模板
  • 苏州网站建设开发友情链接检测的特点
  • 做模型网站赚钱么seo综合查询系统
  • 跨平台网站制作seo推广网络
  • 中华人民共和国建设部网站官网东莞网络推广哪家公司奿
  • 手机网站有免费做的吗营销的方法手段有哪些
  • 城乡建设规划委员会网站seo咨询解决方案
  • 个人做网站多少钱做一个简单的网站需要多少钱
  • 信阳做网站杭州seo排名公司
  • 济南手机网站建设公司北京网络推广公司排行
  • 网站制作是不是要先用ps做百度识图搜索网页版
  • 微信网站建设热线国内新闻摘抄2022年
  • 如何新建网站广州的百度推广公司
  • 帮做网站的公司搜索引擎优化seo名词解释
  • 建设手机网站费用吗广州专做优化的科技公司
  • 营销单页模板网站商业推广费用一般多少
  • python做网站有什么优势怎么注册自己的网站
  • 花垣做网站各种推广平台
  • 免费做暧暧网站山东移动网站建设
  • app开发公司一般多少人aso优化师工作很赚钱吗
  • 个人网站制作论文网站seo优化分析
  • 做收费课程网站企业网站推广方案的策划
  • 如何让订阅号菜单做微网站跨境电商平台有哪些?
  • 团购鲜花的网站建设培训机构需要什么资质
  • 上海网站建设的公司企业网站优化方案
  • 福永网站优化搜索引擎优化入门
  • 网站建设公司哪家强店铺在百度免费定位
  • 高端网站设计平台高端网站设计企业seo文章是什么意思
  • 温州网站制作建设手机优化大师