import request from "../utils/request";

/**
 * 用户信息
 *
 */
export const getUserInfo = () => request.get("/weapp/userInfo");

/**
 * 修改个人昵称
 *
 * [API](https://console-docs.apipost.cn/preview/888dcf083e39e4e4/ae9a5ffd745e57d1?target_id=893191f5-fb56-4080-b75f-4e144f5e5d0e)
 */
export const setNickname = (data) =>
  request.post("/weapp/update/nickname", data);
