710.5——Alpha冲刺Day10

fzu710_5 团队 2023-11-17 22:24:48

目录

会议照片

燃尽图

今日成果

成果展示

commit

部分代码展示

issue

今日总结


这个作业属于哪个课程2301-计算机学院-软件工程>
这个作业要求在哪里团队作业——站立式会议+alpha冲刺-CSDN社区>
这个作业的目标< 站立式会议+alpha冲刺 >
其他参考文献 

会议照片

  • 前端组

  • 后端组

燃尽图

今日成果

  • 各成员通过讨论沟通、团队协作,进一步推进了工作

成果展示

  • 前端成果:基本实现新建队伍功能模块

  • 后端成果:对所需提供的接口服务设计完成

commit

  • 前端

  • 后端

 

部分代码展示

  • 前端

//Page Object
Page({
  data: {
    id: 0,
    level: 0,
    nickname: "",
    token: "",
    peoplelist: [],
    grouplist: [],
    addprouppop: false,
    addproupname: "",
    inputvalue: "",
  },
  //options(Object)
  onLoad: function (options) {
    let that = this
    wx.setVisualEffectOnCapture({
      visualEffect: 'hidden',
      success: (res) => {
        console.log(res)
      },
      fail: (err) => {
        console.log(err)
      },
      complete: (res) => {
        console.log(res)
      }
    })

    wx.getStorage({
      key: 'id',
      success: (res) => {
        that.setData({ 'id': res.data })
        let id = res.data
        wx.getStorage({
          key: 'level',
          success: (res) => {
            that.setData({ 'level': res.data })
            let level = res.data
            wx.getStorage({
              key: 'token',
              success: (res) => {
                that.setData({ 'token': res.data })
                let token = res.data
                wx.getStorage({
                  key: 'nickname',
                  success: (res) => {
                    that.setData({ 'nickname': res.data })
                    let nickname = res.data
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/users',
                      data: {
                        "level": level + 1,
                        "group": ""
                      },
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'POST',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'peoplelist': res.data.data })
                      },
                      fail: (err) => { console.log(err); },
                      complete: () => { }
                    });
                    let num = level + 1
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'GET',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'grouplist': res.data.data })
                      },
                      fail: (err) => { console.log(err); },
                      complete: () => { }
                    });
                  },
                  fail: () => { },
                })
              },
              fail: () => { },
            })
          },
          fail: () => { },
        })
      },
      fail: () => { },
    })
  },
  //账号回收
  huishou(e) {
    console.log(e);
    let that = this
    let id = e.currentTarget.dataset.id
    wx.showModal({
      title: '是否收回账号',
      showCancel: true,
      content: '',
      success: function (res) {
        if (res.confirm) {
          wx.request({
            url: 'http://81.68.194.42:9090/api/1/remove/user/' + id,
            header: {
              'content-type': 'application/json',
              'token': that.data.token
            },
            method: 'GET',
            dataType: 'json',
            success: (res) => {
              console.log(res);
              wx.showModal({
                title: '回收成功',
                showCancel: false,
                content: '',
                success: function (res) {
                  that.handrefresh()
                }
              })
            },
            fail: (err) => { console.log(err); },
            complete: () => { }
          });
        } else if (res.cancel) {
          console.log('用户点击取消')
        }

      }
    })
  },

  //队伍回收
  huishougroup(e) {
    console.log(e);
    let that = this
    let id = e.currentTarget.dataset.id
    wx.showModal({
      title: '是否解散队伍',
      showCancel: true,
      content: '',
      success: function (res) {
        if (res.confirm) {
          wx.request({
            url: 'http://81.68.194.42:9090/api/1/remove/group/' + id,
            header: {
              'content-type': 'application/json',
              'token': that.data.token
            },
            method: 'GET',
            dataType: 'json',
            success: (res) => {
              console.log(res);
              that.handrefresh()
              wx.showModal({
                title: '队伍已解散',
                showCancel: false,
                content: '',
                success: function (res) {
                }
              })
            },
            fail: (err) => { console.log(err); },
            complete: () => { }
          });
        }
      }
    })
  },
  //账号新增
  addpeople(e) {
    console.log(e);
    let that = this
    let id = that.data.id
    wx.request({
      url: 'http://81.68.194.42:9090/api/1/create/code/' + id,
      header: {
        'content-type': 'application/json',
        'token': that.data.token
      },
      method: 'GET',
      dataType: 'json',
      success: (res) => {
        console.log(res);
        let invitecode = res.data.data
        wx.showModal({
          title: '邀请码',
          showCancel: false,
          confirmText: '复制',
          content: res.data.data,
          success: function (res) {
            if (res.confirm) {
              console.log('用户点击复制')
              wx.setClipboardData({
                data: invitecode,
                success: (res) => {
                  wx.showToast({
                    title: '复制成功',
                  })
                }
              })
            } else if (res.cancel) {
              console.log('用户点击取消')
            }
          }
        })
      },
      fail: (err) => { console.log(err); },
      complete: () => { }
    });
  },
  //队伍新增
  addproup(e) {
    this.setData({ addprouppop: !this.data.addprouppop })
  },
  addproupcancel(e) {
    this.setData({ addprouppop: !this.data.addprouppop })
  },
  addproupconfirm(e) {
    let that = this
    wx.request({
      url: 'http://81.68.194.42:9090/api/1/create/group',
      data: {
        name: that.data.addproupname,
        userId: that.data.id,
        level: that.data.level + 1,
      },
      header: {
        'content-type': 'application/json',
        'token': that.data.token
      },
      method: 'POST',
      dataType: 'json',
      success: (res) => {
        console.log(res);
        wx.showModal({
          title: '创建成功',
          showCancel: false,
          content: '',
          success: function (res) {
            that.setData({ addprouppop: !that.data.addprouppop })
            that.handrefresh()
          }
        })
      },
      fail: (err) => { console.log(err); },
      complete: () => { }
    });
  },
  addproupnameinput(e) {
    this.setData({ 'addproupname': e.detail.value })
  },
  onRefresh: function () {
    let that = this
    wx.getStorage({
      key: 'id',
      success: (res) => {
        that.setData({ 'id': res.data })
        let id = res.data
        wx.getStorage({
          key: 'level',
          success: (res) => {
            that.setData({ 'level': res.data })
            let level = res.data
            wx.getStorage({
              key: 'token',
              success: (res) => {
                that.setData({ 'token': res.data })
                let token = res.data
                wx.getStorage({
                  key: 'nickname',
                  success: (res) => {
                    that.setData({ 'nickname': res.data })
                    let nickname = res.data
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/users',
                      data: {
                        "level": level + 1,
                        "group": ""
                      },
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'POST',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'peoplelist': res.data.data })
                      },
                      fail: (err) => { },
                      complete: () => { wx.stopPullDownRefresh(); }
                    });
                    let num = level + 1
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'GET',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'grouplist': res.data.data })
                      },
                      fail: (err) => { console.log(err); },
                      complete: () => { }
                    });
                  },
                  fail: () => { },
                })
              },
              fail: () => { },
            })
          },
          fail: () => { },
        })
      },
      fail: () => { },
    })
  },
  onPullDownRefresh: function () {
    this.onRefresh();
  },
  handrefresh() {
    let that = this
    wx.getStorage({
      key: 'id',
      success: (res) => {
        that.setData({ 'id': res.data })
        let id = res.data
        wx.getStorage({
          key: 'level',
          success: (res) => {
            that.setData({ 'level': res.data })
            let level = res.data
            wx.getStorage({
              key: 'token',
              success: (res) => {
                that.setData({ 'token': res.data })
                let token = res.data
                wx.getStorage({
                  key: 'nickname',
                  success: (res) => {
                    that.setData({ 'nickname': res.data })
                    let nickname = res.data
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/users',
                      data: {
                        "level": level + 1,
                        "group": "",
                        "keyWord": "",
                      },
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'POST',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'peoplelist': res.data.data })
                      },
                      fail: (err) => { },
                      complete: () => { }
                    });
                    let num = level + 1
                    wx.request({
                      url: 'http://81.68.194.42:9090/api/1/get/groups/' + num,
                      header: {
                        'content-type': 'application/json',
                        'token': token
                      },
                      method: 'GET',
                      dataType: 'json',
                      success: (res) => {
                        console.log(res);
                        that.setData({ 'grouplist': res.data.data })
                      },
                      fail: (err) => { console.log(err); },
                      complete: () => { }
                    });
                  },
                  fail: () => { },
                })
              },
              fail: () => { },
            })
          },
          fail: () => { },
        })
      },
      fail: () => { },
    })
  },
  inputevent(e) {
    this.setData({ inputvalue: e.detail.value })
  },
  search(e) {
    let that = this
    wx.request({
      url: 'http://81.68.194.42:9090/api/1/get/users',
      data: {
        "level": that.data.level + 1,
        "keyWord": that.data.inputvalue,
      },
      header: {
        'content-type': 'application/json',
        'token': that.data.token
      },
      method: 'POST',
      dataType: 'json',
      success: (res) => {
        console.log(res);
        that.setData({ 'peoplelist': res.data.data })
      },
      fail: (err) => { console.log(err); },
      complete: () => { }
    });
  },
  cancelsearch(e) {
    let that = this
    wx.request({
      url: 'http://81.68.194.42:9090/api/1/get/users',
      data: {
        "level": that.data.level + 1,
      },
      header: {
        'content-type': 'application/json',
        'token': that.data.token
      },
      method: 'POST',
      dataType: 'json',
      success: (res) => {
        console.log(res, 'lsit');
        that.setData({ 'peoplelist': res.data.data, 'inputvalue': "" })
      },
      fail: (err) => { console.log(err); },
      complete: () => { }
    });
  }
});
  • 后端

package com.huahuo.huahuobank.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName hgroups
 */
@TableName(value ="hgroups")
@Data
public class Hgroups implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    @TableField(value = "level")
    private Integer level;

    /**
     * 
     */
    @TableField(value = "num")
    private Integer num;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Hgroups other = (Hgroups) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", num=").append(num);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}

issue

今日总结

学号姓名昨天站立式会议到现在的进展所遇困难今天到明天会议的安排心得体会
102101113王嘉星完成新建队伍功能相关模块在前端设置权限与后端对接时出现困难优化UI和代码单写前端而不会后端知识是不够的,前后端知识都要懂
102101337施心隆实现新建队伍功能后端数据库操作有误优化代码继续学习
102101130陈泽力完善图片上传和下载优化代码
102101139郑礼铄
102101543蔡林辉完善了队伍功能设置权限监控时出现了问题优化代码多实践
102101116刘宇星完成新建队伍功能接口完善功能继续学习
102101342蔡嘉钦完成新建队伍功能相关模块使用后端接口时出现失误继续完善相关代码多学多练
102101343颜景辉完成新建队伍相关功能接口设计传输数据的结构待优化多多学习、查阅博客要坚持学习
102101115刘庆林调整界面ui比例总结工作内容继续学习
102101423沈棋燊新建队伍功能进行测试

难以设计全面且准确的测试用例

在测试过程中的记录和总结对于未来的优化和改进至关重要。通过记录测试过程中发现的问题、解决方案以及测试结果,可以为未来的版本升级提供宝贵的参考资料。同时,总结测试过程中的经验和教训,有助于发现测试方法的不足之处,并为下一轮测试工作提供指导。这样做可以不断优化测试流程,提高测试效率,同时也有助于小程序的持续改进和用户体验的提升。因此,记录和总结是测试工作中不可或缺的环节
...全文
32 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

158

社区成员

发帖
与我相关
我的任务
社区描述
FZU-CS-SE
软件工程 高校
社区管理员
  • LinQF39
  • Jcandc
  • 助教-陈锦辉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧